shish 2 лет назад
Родитель
Сommit
fd1cda3a2f
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app-hd/controllers/NoticeController.php

+ 5 - 0
app-hd/controllers/NoticeController.php

@@ -17,6 +17,7 @@ use Yii;
 use common\components\util;
 use biz\wx\classes\WxMessageClass;
 use bizGhs\order\classes\OrderClass;
+use biz\shop\classes\ShopExtClass;
 
 class NoticeController extends PublicController
 {
@@ -93,6 +94,10 @@ class NoticeController extends PublicController
                         if (!empty($cgShop)) {
                             \bizHd\notice\classes\NoticeClass::cgSuccessMiniNotice($cgShop, $cg);
                         }
+                        //如果是门店用手机开单,让客户扫码付款的,则也要语音提示
+                        if (isset($order->shopAdminId) && $order->shopAdminId > 0) {
+                            ShopExtClass::ghsGatheringReport($order);
+                        }
                         $shopId = $order->shopId ?? 0;
                         $shop = ShopClass::getById($shopId, true);
                         if (!empty($shop)) {