|
|
|
@ -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\":\"微信到账".$order['money']."元\"}"; |
|
|
|
foreach ($device_names as $key => $dev_name) { |
|
|
|
$this->IOTService->pub($dev_name['device_name'], $msg); |
|
|
|
} |
|
|
|
|