ShopServer.php 682 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Servers;
  3. use Illuminate\Support\Facades\DB;
  4. /**
  5. * 商家管理
  6. */
  7. class ShopServer
  8. {
  9. static private $server = null;
  10. private function __construct()
  11. {
  12. }
  13. /**
  14. * 创建对象
  15. * @return ShopServer
  16. */
  17. static function creatServer()
  18. {
  19. if (empty(self::$server)) self::$server = new ShopServer();
  20. return self::$server;
  21. }
  22. /**
  23. * 获取店铺详情
  24. * @param $shop_id
  25. * @return string[]
  26. */
  27. function getShopInfo($shop_id){
  28. //$status 1正常 2闭店
  29. $info = ['shop_name' => '','shop_logo'=>'','shop_phone'=>'','status'=>1];
  30. return $info;
  31. }
  32. }