| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?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)
- const STATUS_STAY = 1;
- const STATUS_SETTLED = 2;
- const STATUS_CANCEL = 3;
-
- 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 '极速六合彩';
- } elseif ($type == 5) {
- return '加拿大28';
- } elseif ($type == 6) {
- return '极速28';
- } elseif ($type == 7) {
- return '极速赛车';
- } elseif ($type == 8) {
- return '极速时时彩';
- } elseif ($type == 9) {
- return '极速飞艇';
- } elseif ($type == 10) {
- return 'SG时时彩';
- } elseif ($type == 11) {
- return 'SG飞艇';
- } elseif ($type == 12) {
- return '极速快3';
- } elseif ($type == 13) {
- return 'SG快3';
- }
- return '';
- }
-
- }
|