<?php
namespace app\api\model;
use think\Model;
class WeixiuUser extends Model
{
public function income(){
return $this->hasOne('Income','wxid','id')->field('price addtime');
}
}
method not exist:think\db\Query->income
模型下是有income方法的,但是还是报错方法不存在
最佳答案