This repository has been archived on 2021-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pingan_unionpay/app/Models/UnionpayLog.php
2020-10-13 08:49:57 +08:00

26 lines
464 B
PHP

<?php
namespace App\Models;
class UnionpayLog extends Model
{
protected $casts = [
'in_source' => 'array',
'out_source' => 'array',
];
const STATUS_SUCCESS = 1;
const STATUS_ERROR = 0;
const STATUS = [
self::STATUS_SUCCESS => '成功',
self::STATUS_ERROR => '失败',
];
public function coupon()
{
return $this->hasOne(Coupon::class, 'redemptionCode', 'mkt_code');
}
}