shish 5 лет назад
Родитель
Сommit
21475bdbcb

+ 1 - 1
app-ghs/controllers/CustomController.php

@@ -20,7 +20,7 @@ class CustomController extends BaseController
 		$get = Yii::$app->request->get();
 		$type = isset($get['type']) ? $get['type'] : 0;
 		$name = isset($get['name']) ? $get['name'] : '';
-		$where = ['sjId' => $this->sjId];
+		$where = ['ownSjId' => $this->sjId];
 		switch ($type) {
 			case 1:
 				//已开店

+ 1 - 1
app-hd/controllers/GhsController.php

@@ -13,7 +13,7 @@ class GhsController extends BaseController
     public function actionList()
     {
         $where = [];
-        $where['sjId'] = $this->sjId;
+        $where['ownSjId'] = $this->sjId;
         $respond = GhsClass::getGhsList($where);
         util::success($respond);
     }

+ 1 - 1
biz-ghs/custom/classes/CustomClass.php

@@ -179,7 +179,7 @@ class CustomClass extends BaseClass
         if (empty($custom)) {
             util::fail('没有找到客户');
         }
-        if ($custom['sjId'] != $merchantId) {
+        if ($custom['ownSjId'] != $merchantId) {
             util::fail('您没有权限操作此客户');
         }
     }

+ 1 - 1
biz/ghs/classes/GhsClass.php

@@ -145,7 +145,7 @@ class GhsClass extends BaseClass
         if (empty($info)) {
             util::fail('供应商不存在');
         }
-        if ($info['sjId'] == $sjId) {
+        if ($info['ownSjId'] == $sjId) {
             return true;
         }
         util::fail('您没有权限访问的供应商');