You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
661 B

<?php
namespace App\Service;
use App\Model\SpeakerDevic;
class DeviceServiceImp implements DeviceServiceInterFace
{
public function getListByStoreId($store_id){
}
public function bindByStoreId($dev_name,$store_id){
$sd = null;
try{
$sd = new SpeakerDevic;
$sd->store_id = $store_id;
$sd->device_name = $dev_name;
$sd->market_id = 1;
$sd->bind_time = time();
$sd->saveOrFail();
}catch(Exception $e){
//var_dump($e);
}
return $sd;
}
public function pubMsgByStoreIdAndDevName($dev_name,$store_id,$msg){
}
}