소스 검색

创建门店优化

shish 10 달 전
부모
커밋
b533ba49a0
2개의 변경된 파일8개의 추가작업 그리고 12개의 파일을 삭제
  1. 8 8
      app-ghs/controllers/IntraCityController.php
  2. 0 4
      app-hd/controllers/IntraCityController.php

+ 8 - 8
app-ghs/controllers/IntraCityController.php

@@ -75,14 +75,14 @@ class IntraCityController extends BaseController
 
             // 查询是否存在 wx_store_id,不存在则执行apply
             if ($main->wxStoreId == '') {
-                $re = IntraCityExpress::applyStore();
-                if (!is_array($re)) {
-                    $re = Json::decode($re, true);
-                }
-                if ($re['errcode'] != 0) {
-                    Yii::error("开通门店权限失败:" . $re['errmsg']);
-                    util::fail('开通门店权限失败');
-                }
+//                $re = IntraCityExpress::applyStore();
+//                if (!is_array($re)) {
+//                    $re = Json::decode($re, true);
+//                }
+//                if ($re['errcode'] != 0) {
+//                    Yii::error("开通门店权限失败:" . $re['errmsg']);
+//                    util::fail('开通门店权限失败');
+//                }
             }
 
             $result = IntraCityExpress::createStore($storeData);

+ 0 - 4
app-hd/controllers/IntraCityController.php

@@ -69,7 +69,6 @@ class IntraCityController extends BaseController
                     util::fail("缺少必填参数:{$field}");
                 }
             }
-            noticeUtil::push("创建跑腿门店,参数 111", '15280215347');
             // 创建门店前,检查是否已经 开通门店权限 (有wxStoreId,即说明开通了)
             //$shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true, false, 'id, wxStoreId');
             $shopExt = MainClass::getById($this->mainId, true, 'id, wxStoreId');
@@ -80,15 +79,12 @@ class IntraCityController extends BaseController
 //                if (!is_array($re)) {
 //                    $re = Json::decode($re, true);
 //                }
-//                noticeUtil::push("创建跑腿门店,参数内容:" . json_encode($re), '15280215347');
 //                if ($re['errcode'] != 0) {
 //                    Yii::error("开通门店权限失败:" . $re['errmsg']);
 //                    util::fail('开通门店权限失败');
 //                }
             }
 
-            noticeUtil::push("创建跑腿门店,参数:" . json_encode($storeData), '15280215347');
-
             $result = IntraCityExpress::createStore($storeData);
             if ($result['errcode'] === 0) {
                 // 保存微信门店编号(wx_store_id)