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

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

@@ -283,7 +283,7 @@ class NoticeController extends PublicController
                 }
                 Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 864000, 'has']);
 
-                //零售采购结账通知
+                //零售采购通知
                 if ($capitalType == dict::getDict('capitalType', 'xhPurchase', 'id')) {
                     $cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
                     if (!empty($cg) && $cg->payStatus == 1) {
@@ -297,6 +297,10 @@ class NoticeController extends PublicController
                                 $order->printNum += 1;
                                 $order->save();
                             }
+                            //如果是门店用手机开单,让客户扫码付款的,则也要语音提示
+                            if (isset($order->shopAdminId) && $order->shopAdminId > 0) {
+                                ShopExtClass::ghsGatheringReport($order);
+                            }
                             $cgShopId = $cg->shopId ?? 0;
                             $cgShop = ShopClass::getById($cgShopId, true);
                             if (!empty($cgShop)) {