...
|
...
|
@@ -154,7 +154,6 @@ 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;
|
|
|
}
|
...
|
...
|
@@ -173,7 +172,8 @@ class User extends Api |
|
|
->where('is_read_user',2)
|
|
|
->count(),
|
|
|
// 是否入驻店铺
|
|
|
'is_store' => $store_house
|
|
|
'is_store' => $store_house,
|
|
|
'sql' => Db::name('store_house')->getLastSql()
|
|
|
];
|
|
|
$user = $user->visible([
|
|
|
'id',
|
...
|
...
|
|