12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- /**
- * [WeEngine System] Copyright (c) 2014 WE7.CC
- * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
- */
- namespace We7\Table\Account;
-
- class Wxapp extends \We7Table {
- protected $tableName = 'account_wxapp';
- protected $primaryKey = 'acid';
- protected $field = array(
- 'uniacid',
- 'token',
- 'encodingaeskey',
- 'level',
- 'account',
- 'original',
- 'key',
- 'secret',
- 'name',
- 'appdomain',
- );
- protected $default = array(
- 'uniacid' => '',
- 'token' => '',
- 'encodingaeskey' => '',
- 'level' => '',
- 'account' => '',
- 'original' => '',
- 'key' => '',
- 'secret' => '',
- 'name' => '',
- 'appdomain' => '',
- );
-
- public function wxappInfo($uniacid) {
- if (is_array($uniacid)) {
- return $this->query->where('uniacid', $uniacid)->getall('uniacid');
- } else {
- return $this->query->where('uniacid', $uniacid)->get();
- }
- }
- }
|