Browse Source

no message

master
weigang 5 years ago
parent
commit
19daecf5b9
  1. 8
      app/Controller/v3/NotifyController.php

8
app/Controller/v3/NotifyController.php

@ -159,6 +159,8 @@ class NotifyController extends BaseController
$this->orderOnlineService->doByPaid($orderMain->global_order_id); $this->orderOnlineService->doByPaid($orderMain->global_order_id);
$this->separateAccountsService->orderOnlinePaid($orderMain->global_order_id); $this->separateAccountsService->orderOnlinePaid($orderMain->global_order_id);
Db::commit();
// 优惠券返券 // 优惠券返券
$this->couponRebateService->couponRebateInTask($orderMain->global_order_id); $this->couponRebateService->couponRebateInTask($orderMain->global_order_id);
@ -172,8 +174,6 @@ class NotifyController extends BaseController
// 打印订单,自动打印 // 打印订单,自动打印
$res = $this->feiePrintService->feiePrint($orderMain->global_order_id); $res = $this->feiePrintService->feiePrint($orderMain->global_order_id);
Db::commit();
// 记录badge // 记录badge
$orderChildIds = Order::query()->where(['order_main_id' => $orderMain->global_order_id])->pluck('store_id'); $orderChildIds = Order::query()->where(['order_main_id' => $orderMain->global_order_id])->pluck('store_id');
$this->badgeService->doByOrder($orderMain->user_id, $orderChildIds, $orderMain->global_order_id, OrderState::PAID); $this->badgeService->doByOrder($orderMain->user_id, $orderChildIds, $orderMain->global_order_id, OrderState::PAID);
@ -256,14 +256,14 @@ class NotifyController extends BaseController
$orderPaid = $this->orderOfflineService->doByPaid($orderMain->global_order_id); $orderPaid = $this->orderOfflineService->doByPaid($orderMain->global_order_id);
$separate = $this->separateAccountsService->orderOfflinePaid($orderMain->global_order_id); $separate = $this->separateAccountsService->orderOfflinePaid($orderMain->global_order_id);
Db::commit();
// 喇叭通知,兼容旧音响,MQTT+IOT // 喇叭通知,兼容旧音响,MQTT+IOT
$res = $this->mqttService->speakToStore($orderMain->global_order_id); $res = $this->mqttService->speakToStore($orderMain->global_order_id);
$res = $this->deviceService->pubMsgToStoreByOrderMainId($orderMain->global_order_id); $res = $this->deviceService->pubMsgToStoreByOrderMainId($orderMain->global_order_id);
// 公众号模板消息 // 公众号模板消息
$res = $this->miniprogramService->sendTemMsgForOfflineOrder($orderMain->global_order_id); $res = $this->miniprogramService->sendTemMsgForOfflineOrder($orderMain->global_order_id);
Db::commit();
return true; return true;
} catch (Exception $e) { } catch (Exception $e) {

Loading…
Cancel
Save