فهرست منبع

临时关闭不能给自己零售店开单

shish 4 سال پیش
والد
کامیت
29d924ad65
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 1
      app-ghs/controllers/OrderController.php
  2. 3 1
      app-pt/controllers/WxController.php

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

@@ -629,7 +629,7 @@ class OrderController extends BaseController
         }
         CustomClass::valid($custom, $this->shopId);
         if (isset($custom['mainId']) && !empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {
-            util::fail('不能给自己的零售店开单');
+            //util::fail('不能给自己的零售店开单');
         }
         $post['ghsId'] = $custom['ghsId'] ?? 0;
         $post['customMobile'] = $custom['mobile'] ?? '';

+ 3 - 1
app-pt/controllers/WxController.php

@@ -113,7 +113,6 @@ class WxController extends PublicController
         $MediaId = $postObj->MediaId;//图片媒体id
         $Content = trim($postObj->Content); // 消息内容
 
-        //noticeUtil::push('关注者openId ' . $this->fromUsername, '15280215347');
 
         if ($style == dict::getDict('ptStyle', 'hd')) {
             //零售
@@ -173,6 +172,9 @@ class WxController extends PublicController
                 switch ($Event) {
                     //关注
                     case 'subscribe':
+
+                        noticeUtil::push('关注者openId ' . $this->fromUsername, '15280215347');
+
                         $text = $this->replyTextContent("等您好久,终于等到您 /::)");
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
                         $encryptMsg = '';