作者 何书鹏

骑手提现

... ... @@ -87,6 +87,6 @@ class Tax extends Model
public function user()
{
return $this->belongsTo('User', 'id', 'id', [], 'LEFT')->setEagerlyType(0);
return $this->belongsTo('User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}
... ...
... ... @@ -12,6 +12,7 @@ use app\api\model\UserMoneyLog;
use app\api\model\Withdraw;
use app\common\controller\Api;
use app\common\model\User;
use EasyWeChat\Factory;
use think\Config;
use think\Db;
use think\Exception;
... ...
<?php
namespace app\api\model;
use think\Model;
class Withdraw extends Model
{
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
protected $createTime = 'createtime';
protected $updateTime = '';
}
\ No newline at end of file
... ...