shish il y a 8 mois
Parent
commit
ad354801e7

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

@@ -238,7 +238,7 @@ class NoticeController extends PublicController
                         $cgShopId = $cg->shopId ?? 0;
                         $cgShop = ShopClass::getById($cgShopId, true);
                         if (!empty($cgShop)) {
-                            NoticeClass::cgSuccessMiniNotice($cgShop, $cg);
+                            //NoticeClass::cgSuccessMiniNotice($cgShop, $cg);
                         }
                         //如果是门店用手机开单,让客户扫码付款的,则也要语音提示
                         if (isset($order->shopAdminId) && $order->shopAdminId > 0) {

+ 6 - 3
app-hd/controllers/PurchaseController.php

@@ -3,6 +3,7 @@
 namespace hd\controllers;
 
 use biz\admin\classes\AdminClass;
+use biz\common\classes\GhsNotifyClass;
 use biz\ghs\classes\GhsClass;
 use biz\shop\classes\ShopClass;
 use biz\shop\classes\ShopExtClass;
@@ -864,9 +865,11 @@ class PurchaseController extends BaseController
                 if (!empty($shop)) {
                     //微信通知供货商
                     //WxMessageClass::ghsHasNewOrderInform($shop, $order);
-                    $noticeText = json_encode(['orderId' => $saleId]);
-                    $noticeKey = "hdCgNoticeGhs";
-                    Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
+//                    $noticeText = json_encode(['orderId' => $saleId]);
+//                    $noticeKey = "hdCgNoticeGhs";
+//                    Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
+
+                    GhsNotifyClass::newOrderNotify($saleId);
 
                     //向供货商APP发通知
 //                    $cgShop = ShopClass::getById($cg->shopId, true, 'shopName, merchantName');