|
|
@@ -198,4 +198,26 @@ class AdminController extends BaseController
|
|
|
util::success(['mobile' => $mobile]);
|
|
|
}
|
|
|
|
|
|
+ //已经存有token,但没有store信息重新获取
|
|
|
+ //注意这里的输出内容有多个地方一样,要修改需要同步修改,请搜索关键词loginOK!!!!!!!!
|
|
|
+ public function actionAppReGetLoginInfo()
|
|
|
+ {
|
|
|
+ $admin = $this->admin;
|
|
|
+ $currentShopId = $admin->currentShopId ?? 0;
|
|
|
+ $switchShop = \biz\shop\classes\ShopAdminClass::hasSwitchShopRight($this->shopAdmin->attributes);
|
|
|
+ $openShop = $admin['openShop'] ?? 1;
|
|
|
+ $showDemo = 1;
|
|
|
+ util::success([
|
|
|
+ 'token' => '',
|
|
|
+ 'admin' => $admin,
|
|
|
+ 'shopAdminId' => $this->shopAdminId,
|
|
|
+ 'shopId' => $currentShopId,
|
|
|
+ 'switchShop' => $switchShop,
|
|
|
+ 'openShop' => $openShop,
|
|
|
+ 'showDemo' => $showDemo,
|
|
|
+ //有小程序新版本提示更新
|
|
|
+ 'update' => 0,
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
}
|