...
|
...
|
@@ -154,6 +154,7 @@ class User extends Api |
|
|
// 'end_time' => ['>',time()]
|
|
|
];
|
|
|
$store_house = Db::name('store_house')->where($where_house)->count();
|
|
|
halt(Db::name('store_house')->getLastSql());
|
|
|
if(!$store_house) {
|
|
|
$store_house = 2;
|
|
|
}
|
...
|
...
|
@@ -172,8 +173,7 @@ class User extends Api |
|
|
->where('is_read_user',2)
|
|
|
->count(),
|
|
|
// 是否入驻店铺
|
|
|
'is_store' => $store_house,
|
|
|
'store' => \app\api\model\Store::where('user_id',$this->auth->id)->order('id','DESC')->find()
|
|
|
'is_store' => $store_house
|
|
|
];
|
|
|
$user = $user->visible([
|
|
|
'id',
|
...
|
...
|
|