From a2fd7669c1668785c236ef730ea9434d421a472a Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Sat, 29 Aug 2020 15:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=8A=A5=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E5=BD=93=E4=B8=BA=E6=95=B4=E6=95=B0=E6=97=B6=20?= =?UTF-8?q?=E5=8E=BB=E9=99=A40.00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/DeviceServiceImp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/DeviceServiceImp.php b/app/Service/DeviceServiceImp.php index 852a88f..4791dba 100644 --- a/app/Service/DeviceServiceImp.php +++ b/app/Service/DeviceServiceImp.php @@ -112,7 +112,7 @@ class DeviceServiceImp implements DeviceServiceInterface ->where(['store_id' => $order['store_id'], 'is_bind' => SpeakerDevic::IS_BIND_YES]) ->get() ->toArray(); - $msg = $order['type']==1 ? "{\"msg\":\"您有新的懒族外卖订单\"}" : "{\"msg\":\"微信到账".$order['money']."元\"}"; + $msg = $order['type']==1 ? "{\"msg\":\"您有新的懒族外卖订单\"}" : "{\"msg\":\"微信到账".floatval($order['money'])."元\"}"; foreach ($device_names as $key => $dev_name) { $this->IOTService->pub($dev_name['device_name'], $msg); }