shish 8 månader sedan
förälder
incheckning
1d128d19dc
1 ändrade filer med 0 tillägg och 28 borttagningar
  1. 0 28
      app-ghs/controllers/OrderController.php

+ 0 - 28
app-ghs/controllers/OrderController.php

@@ -1311,36 +1311,8 @@ class OrderController extends BaseController
                 $shop = ShopClass::getById($shopId, true);
                 if (isset($order->payStatus) && $order->payStatus == 1) {
                     if (!empty($shop)) {
-/*
-                        //通知员工
-                        $noticeText = json_encode(['orderId' => $saleId]);
-                        $noticeKey = "hdCgNoticeGhs";
-                        Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
-
-                        //通知花店
-                        //$noticeText = json_encode(['id' => $order->purchaseId]);
-                        //$noticeKey = "ghsKdNoticeHd";
-                        //Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
-
-                        Yii::info('向花店App发通知');
-                        //$custom = CustomClass::getById($order->customId);
-                        //$customShop = ShopClass::getById($custom['shopId'], true, 'merchantName, shopName');
-                        //向花店App发通知
-                        $allDevices = \bizHd\device\classes\HdDeviceClass::getAllByCondition(['shopId'=>$custom['shopId']]);
-                        $cids = array_column($allDevices, 'clientId');
-                        $title = '买花成功';
-                        $shopName = $shop->merchantName . ($shop->shopName != '首店' ? '(' . $shop->shopName . ')' : '');
-                        $content = $shopName . ' ¥' . $order->actPrice;
-                        $payload = [
-                            "page" => "pagesPurchase/purDetails",
-                            "params" => ["id" => $order->purchaseId]
-                        ];
-                        $push = new push('hd', push::MSG_TYPE_ORDER);
-                        $push->pushByCloud($cids, $title, $content, $payload);
-*/
                         GhsNotifyClass::newOrderNotify($saleId);
                         HdNotifyClass::newCgNotify($order->purchaseId);
-
                     }
                 }
                 //订单生成时唤起在线打印