WokerTask/app/common/model/user/Withdraw.php

22 lines
359 B
PHP

<?php
namespace app\common\model\user;
use think\model;
class Withdraw extends Model
{
public function buildOrderSn()
{
return 'TX' . date('YmdHis') . rand(10000, 99999);
}
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar', 'company_id']);
}
}