Kaynağa Gözat

微信通知

shish 5 yıl önce
ebeveyn
işleme
3580eb9fe8

+ 3 - 2
biz-hd/purchase/services/PurchaseService.php

@@ -228,10 +228,11 @@ class PurchaseService extends BaseService
         $order->onlinePay = dict::getDict('onlinePay', 'yes');
         $order->onlinePay = dict::getDict('onlinePay', 'yes');
         $order->save();
         $order->save();
 
 
-        //由批发店发起的采购单,零售付款时不需要打印订单
+        //由批发店发起的采购单,零售付款时不需要打印订单,不需要微信通知
         if ($info->cgStyle == dict::getDict('cgStyle', 'ghs')) {
         if ($info->cgStyle == dict::getDict('cgStyle', 'ghs')) {
             $order->needPrint = dict::getDict('needPrint', 'noNeed');
             $order->needPrint = dict::getDict('needPrint', 'noNeed');
-            $order->save();
+
+            Yii::$app->params['noNeedWxNotice'] = 1;$order->save();
         }
         }
         OrderService::payAfter($order, $payWay, true);
         OrderService::payAfter($order, $payWay, true);