|
|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
|
namespace App\Models;
|
|
|
-
|
|
|
+use App\Models\LhcLottery;
|
|
|
class LhcOrder extends BaseModel
|
|
|
{
|
|
|
protected $table = 'lhc_order';
|
|
|
@@ -10,5 +10,10 @@ class LhcOrder extends BaseModel
|
|
|
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');
|
|
|
+ }
|
|
|
|
|
|
}
|