|
|
@@ -6,7 +6,7 @@ class Order extends BaseModel
|
|
|
{
|
|
|
protected $table = 'sport_order';
|
|
|
protected $fillable = ['user_id', 'order_id', 'issue' ,'is_roll' ,'amount' ,'cny_rate' ,'win_amount','profit_and_loss','is_faker','is_win', 'stattus','settlement_status',
|
|
|
- 'pay_status','pay_time','pay_type','return_status','return_apply_time','return_operation_time','failure_msg', 'create_time','remark' ];
|
|
|
+ 'pay_status','pay_time','pay_type','return_status','return_apply_time','return_operation_time','failure_msg', 'create_time','remark','settlement_time' ];
|
|
|
|
|
|
public $timestamps = true;
|
|
|
protected $dateFormat = 'U'; // U 代表 UNIX 时间戳(int)
|
|
|
@@ -34,4 +34,9 @@ class Order extends BaseModel
|
|
|
{
|
|
|
return Carbon::parse($value)->timezone('Asia/Shanghai')->format('Y-m-d H:i:s');
|
|
|
}
|
|
|
+
|
|
|
+ protected function getSettlementTimeAttribute($value): string
|
|
|
+ {
|
|
|
+ return $value ? date('Y-m-d H:i:s', $value) : '';
|
|
|
+ }
|
|
|
}
|