BoxMidHandleService.php 622 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\common\service;
  3. use app\common\model\BoxMidHandleModel;
  4. use utils\RedisCache;
  5. /**
  6. * 盒子匹配服务 by wes
  7. * Class BoxMidHandleService
  8. * @package app\common\service
  9. */
  10. class BoxMidHandleService
  11. {
  12. protected static $instance = null;
  13. protected $model = null;
  14. public function __construct()
  15. {
  16. $this->model = new BoxMidHandleModel();
  17. }
  18. /**
  19. * 静态化入口
  20. * @return static|null
  21. */
  22. public static function make()
  23. {
  24. if(!self::$instance){
  25. self::$instance = new static();
  26. }
  27. return self::$instance;
  28. }
  29. }