From d5522f5fc7071f6c4883e340610b80eafd5cf861 Mon Sep 17 00:00:00 2001 From: weigang Date: Tue, 15 Sep 2020 17:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E5=8D=96=E8=AE=A2=E5=8D=95=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=86=85=E5=AE=B9=E5=B0=9D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/DeviceService.php | 2 +- app/Service/v3/Implementations/MqttService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/v3/Implementations/DeviceService.php b/app/Service/v3/Implementations/DeviceService.php index 7cd4668..a6443fe 100644 --- a/app/Service/v3/Implementations/DeviceService.php +++ b/app/Service/v3/Implementations/DeviceService.php @@ -116,7 +116,7 @@ class DeviceService implements DeviceServiceInterface ->where(['store_id' => $order['store_id'], 'is_bind' => SpeakerDevic::IS_BIND_YES]) ->get() ->toArray(); - $msg = $order['order_main']['type'] == 1 ? "{\"msg\":\"您有新的懒族外卖订单\"}" : "{\"msg\":\"微信到账".$order['money']."元\"}"; + $msg = $order['order_main']['type'] == 1 ? "{\"msg\":\"懒族生活提示您:您有新的懒族外卖订单。懒族生活,满足您的美味生活。\"}" : "{\"msg\":\"微信到账".$order['money']."元\"}"; foreach ($device_names as $key => $dev_name) { $this->IOTService->pub($dev_name['device_name'], $msg); } diff --git a/app/Service/v3/Implementations/MqttService.php b/app/Service/v3/Implementations/MqttService.php index e3fab9a..def402e 100644 --- a/app/Service/v3/Implementations/MqttService.php +++ b/app/Service/v3/Implementations/MqttService.php @@ -31,7 +31,7 @@ class MqttService implements MqttServiceInterface // 循环发送 foreach ($orders as $k => &$order) { - $template = $order->orderMain->type == OrderType::ONLINE ? "您有新的懒族外卖订单" : "微信到账".floatval($order->money)."元"; + $template = $order->orderMain->type == OrderType::ONLINE ? "懒族生活提示您:您有新的懒族外卖订单。懒族生活,满足您的美味生活。" : "微信到账".floatval($order->money)."元"; // 获取终端ID $to_client_id = Store::query()->where(['id' => $order->store_id])->value('loudspeaker_imei'); // 发布订阅消息