|
|
|
@ -60,8 +60,8 @@ class DeviceService implements DeviceServiceInterface |
|
|
|
$market_id = Store::query()->where(['id' => $store_id])->value('market_id'); |
|
|
|
|
|
|
|
$sd = SpeakerDevic::query()->updateOrCreate( |
|
|
|
['store_id' => $store_id, 'device_name' => $dev_name], |
|
|
|
['market_id' => $market_id, 'bind_time' => time(), 'is_bind' => SpeakerDevic::IS_BIND_YES] |
|
|
|
['device_name' => $dev_name], |
|
|
|
['store_id' => $store_id, 'market_id' => $market_id, 'bind_time' => time(), 'is_bind' => SpeakerDevic::IS_BIND_YES] |
|
|
|
); |
|
|
|
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|