...
|
...
|
@@ -3,6 +3,7 @@ |
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\admin\model\UserWithdraw;
|
|
|
use app\api\model\HouseAdmin as HouseAdminModel;
|
|
|
use app\api\model\HouseComment;
|
|
|
use app\api\model\Message;
|
|
|
use app\api\model\StoreComment;
|
...
|
...
|
@@ -170,6 +171,14 @@ class User extends Api |
|
|
'money',
|
|
|
'identity'
|
|
|
])->toArray();
|
|
|
$info = HouseAdminModel::with(['house'])
|
|
|
->where(['user_id'=>$this->auth->id])
|
|
|
->order(['is_direct'=>'asc','createtime'=>'asc'])
|
|
|
->field('id,house_id,is_direct,nickname,avatar')
|
|
|
->find();
|
|
|
if(!$info) {
|
|
|
$user['identity'] = 0;
|
|
|
}
|
|
|
$this->success('成功', array_merge($user,$data));
|
|
|
}
|
|
|
|
...
|
...
|
|