1 个管道
的构建
通过
耗费
0 秒
Merge branch 'master' of http://114.215.101.231:8099/guosheng/community into Branch_liuzhen
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
@@ -497,7 +497,7 @@ class HouseAdmin extends Api | @@ -497,7 +497,7 @@ class HouseAdmin extends Api | ||
497 | 497 | ||
498 | Db::startTrans(); | 498 | Db::startTrans(); |
499 | $result = (new HouseAdminModel)->allowField(true)->save(array_merge([ | 499 | $result = (new HouseAdminModel)->allowField(true)->save(array_merge([ |
500 | - 'user_id' => $admin_user['id'] | 500 | + 'user_id' => $admin_user['id'], |
501 | 'avatar' => $admin_user['avatar'], | 501 | 'avatar' => $admin_user['avatar'], |
502 | 'is_direct' => 2 | 502 | 'is_direct' => 2 |
503 | ],$post)); | 503 | ],$post)); |
@@ -169,8 +169,8 @@ class User extends Api | @@ -169,8 +169,8 @@ class User extends Api | ||
169 | 'money', | 169 | 'money', |
170 | 'identity' | 170 | 'identity' |
171 | ])->toArray(); | 171 | ])->toArray(); |
172 | - $info = HouseAdminModel::with(['house']) | ||
173 | - ->where(['user_id'=>$this->auth->id]) | 172 | + $info = HouseAdminModel::where(['user_id'=>$this->auth->id]) |
173 | + ->where(['house_id'=>$house['id']]) | ||
174 | ->order(['is_direct'=>'asc','createtime'=>'asc']) | 174 | ->order(['is_direct'=>'asc','createtime'=>'asc']) |
175 | ->field('id,house_id,is_direct,nickname,avatar') | 175 | ->field('id,house_id,is_direct,nickname,avatar') |
176 | ->find(); | 176 | ->find(); |
-
请 注册 或 登录 后发表评论