Qrcode.php 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Qrcode;
  7. class Qrcode extends \We7Table {
  8. protected $tableName = 'qrcode';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'acid',
  13. 'type',
  14. 'extra',
  15. 'qrcid',
  16. 'scene_str',
  17. 'name',
  18. 'keyword',
  19. 'model',
  20. 'ticket',
  21. 'url',
  22. 'expire',
  23. 'subnum',
  24. 'createtime',
  25. 'status',
  26. );
  27. protected $default = array(
  28. 'uniacid' => '0',
  29. 'acid' => '',
  30. 'type',
  31. 'extra',
  32. 'qrcid',
  33. 'scene_str',
  34. 'name',
  35. 'keyword',
  36. 'model' => 1,
  37. 'ticket',
  38. 'url',
  39. 'expire',
  40. 'subnum',
  41. 'createtime' => 0,
  42. 'status',
  43. );
  44. public function searchWithUniacid($uniacid) {
  45. return $this->query->where('uniacid', $uniacid);
  46. }
  47. }