소스 검색

供货商

shish 5 년 전
부모
커밋
21475bdbcb
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      app-ghs/controllers/CustomController.php
  2. 1 1
      app-hd/controllers/GhsController.php
  3. 1 1
      biz-ghs/custom/classes/CustomClass.php
  4. 1 1
      biz/ghs/classes/GhsClass.php

+ 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('您没有权限访问的供应商');