IntelligenceUser.php 589 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\admin\model;
  3. use support\Model;
  4. /**
  5. * 会员智能设备信息
  6. * Class Users
  7. * @package app\admin\model
  8. */
  9. class IntelligenceUser extends Model
  10. {
  11. /**
  12. * The table associated with the model.
  13. *
  14. * @var string
  15. */
  16. protected $table = 'user_intelligence_equipment';
  17. public $timestamps = false;
  18. /**
  19. * Notes:会员智能设备查询
  20. * @return int
  21. * User: ZQ
  22. * Date: 2022/9/19
  23. */
  24. public static function equipmentCheck($data)
  25. {
  26. $id = static::where($data)->first();
  27. return $id;
  28. }
  29. }