|
|
@ -116,7 +116,7 @@ class DeviceService implements DeviceServiceInterface |
|
|
->where(['store_id' => $order['store_id'], 'is_bind' => SpeakerDevic::IS_BIND_YES]) |
|
|
->where(['store_id' => $order['store_id'], 'is_bind' => SpeakerDevic::IS_BIND_YES]) |
|
|
->get() |
|
|
->get() |
|
|
->toArray(); |
|
|
->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) { |
|
|
foreach ($device_names as $key => $dev_name) { |
|
|
$this->IOTService->pub($dev_name['device_name'], $msg); |
|
|
$this->IOTService->pub($dev_name['device_name'], $msg); |
|
|
} |
|
|
} |
|
|
|