coupon-admin/app/model/Recharge.php

25 lines
463 B
PHP
Raw Normal View History

2021-11-18 09:57:04 +00:00
<?php
namespace app\model;
use think\Collection;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
/**
* 充值记录
* Class Recharge
* @package app\model
*/
class Recharge extends Base
{
const state_off = 0;//未支付
const state_on = 1;//已支付
public function business()
{
2021-12-01 08:53:44 +00:00
return $this->hasOne(Business::class,"code","business_code");
2021-11-18 09:57:04 +00:00
}
2021-12-01 08:53:44 +00:00
2021-11-18 09:57:04 +00:00
}