人人商城

Wxapp.php 903B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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\Account;
  7. class Wxapp extends \We7Table {
  8. protected $tableName = 'account_wxapp';
  9. protected $primaryKey = 'acid';
  10. protected $field = array(
  11. 'uniacid',
  12. 'token',
  13. 'encodingaeskey',
  14. 'level',
  15. 'account',
  16. 'original',
  17. 'key',
  18. 'secret',
  19. 'name',
  20. 'appdomain',
  21. );
  22. protected $default = array(
  23. 'uniacid' => '',
  24. 'token' => '',
  25. 'encodingaeskey' => '',
  26. 'level' => '',
  27. 'account' => '',
  28. 'original' => '',
  29. 'key' => '',
  30. 'secret' => '',
  31. 'name' => '',
  32. 'appdomain' => '',
  33. );
  34. public function wxappInfo($uniacid) {
  35. if (is_array($uniacid)) {
  36. return $this->query->where('uniacid', $uniacid)->getall('uniacid');
  37. } else {
  38. return $this->query->where('uniacid', $uniacid)->get();
  39. }
  40. }
  41. }