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.

28 lines
661 B

  1. <?php
  2. namespace App\Service;
  3. use App\Model\SpeakerDevic;
  4. class DeviceServiceImp implements DeviceServiceInterFace
  5. {
  6. public function getListByStoreId($store_id){
  7. }
  8. public function bindByStoreId($dev_name,$store_id){
  9. $sd = null;
  10. try{
  11. $sd = new SpeakerDevic;
  12. $sd->store_id = $store_id;
  13. $sd->device_name = $dev_name;
  14. $sd->market_id = 1;
  15. $sd->bind_time = time();
  16. $sd->saveOrFail();
  17. }catch(Exception $e){
  18. //var_dump($e);
  19. }
  20. return $sd;
  21. }
  22. public function pubMsgByStoreIdAndDevName($dev_name,$store_id,$msg){
  23. }
  24. }