|
|
@@ -5,6 +5,7 @@ namespace ghs\controllers;
|
|
|
use biz\admin\classes\AdminClass;
|
|
|
use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
+use biz\shop\classes\ShopExtClass;
|
|
|
use biz\sj\classes\SjClass;
|
|
|
use biz\sj\services\MerchantExtendService;
|
|
|
use biz\sj\services\MerchantService;
|
|
|
@@ -17,7 +18,7 @@ use common\components\util;
|
|
|
class BaseController extends PublicController
|
|
|
{
|
|
|
public $admin, $adminId, $adminAvatar, $account;
|
|
|
- public $sjId = 0, $sj = [], $sjExtend = [], $signPackage, $shop = [], $shopId = 0, $lookShopId = 0, $shopAdminId = 0, $shopAdmin = [];
|
|
|
+ public $sjId = 0, $sj = [], $sjExtend = [], $signPackage, $shop = [], $shopExt = [], $shopId = 0, $lookShopId = 0, $shopAdminId = 0, $shopAdmin = [];
|
|
|
public $appId;
|
|
|
public $isWx = false;
|
|
|
public $isLogin = false;
|
|
|
@@ -59,6 +60,11 @@ class BaseController extends PublicController
|
|
|
if (empty($shop)) {
|
|
|
util::fail('没有找到您管理的门店');
|
|
|
}
|
|
|
+ $shopExt = ShopExtClass::getByCondition(['shopId' => $currentShopId], true);
|
|
|
+ if (empty($shopExt)) {
|
|
|
+ util::fail('没有找到门店');
|
|
|
+ }
|
|
|
+ $this->shopExt = $shopExt;
|
|
|
$shopAdmin = ShopAdminClass::getByCondition(['shopId' => $currentShopId, 'adminId' => $adminId, 'delStatus' => 0], true);
|
|
|
if (empty($shopAdmin)) {
|
|
|
util::logout('没有找到员工信息');
|