|
|
@@ -88,7 +88,7 @@ class User extends AuthController
|
|
|
public function set_store($uid = 0)
|
|
|
{
|
|
|
if (!$uid) return $this->failed('缺少参数');
|
|
|
- $stores = SystemStore::where('id', 'not in', UserStorePromoter::where('uid', $uid)->column('store_id'))->select();
|
|
|
+ $stores = \app\models\system\SystemStore::where('id', 'not in', UserStorePromoter::where('uid', $uid)->column('store_id'))->select();
|
|
|
$field[] = Form::select('store_id', '代理门店')->setOptions(function () use ($stores) {
|
|
|
$menus = [];
|
|
|
foreach ($stores as $menu) {
|