24 lines
487 B
PHP
24 lines
487 B
PHP
<?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()
|
|
{
|
|
return $this->hasOne(Business::class,"code","business_code")->bind(["business_name"]);
|
|
}
|
|
} |