| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Models;
- use App\Models\LhcLottery;
- class LhcOrder extends BaseModel
- {
- protected $table = 'lhc_order';
- protected $fillable = ['issue','ordernum','member_id','game','gameplay','number','odds','amount','lottery_status','win_amount','profit_and_loss','is_faker','remark','type'];
- protected $hidden = [];
-
- public $timestamps = true;
- protected $dateFormat = 'U'; // U 代表 UNIX 时间戳(int)
- public function lottery()
- {
- return $this->belongsTo(LhcLottery::class, 'issue', 'issue')
- ->select('issue', 'type', 'open_code', 'open_time', 'is_settlement');
- }
- public static function getRemark($type)
- {
- if ($type == 1) {
- return '新澳门六合彩';
- } elseif ($type == 2) {
- return '香港六合彩';
- } elseif ($type == 3) {
- return '澳门六合彩';
- } elseif ($type == 4) {
- return '极速六合彩';
- }
- return '';
- }
-
- }
|