[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.
Wxapp |
<?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',
'auth_refresh_token',
);
protected $default = array(
'uniacid' => '',
'token' => '',
'encodingaeskey' => '',
'level' => '',
'account' => '',
'original' => '',
'key' => '',
'secret' => '',
'name' => '',
'appdomain' => '',
'auth_refresh_token' => '',
);
public function getAccount($acid) {
return $this->query->where('acid', $acid)->get();
}
public function wxappInfo($uniacid) {
if (is_array($uniacid)) {
return $this->query->where('uniacid', $uniacid)->getall('uniacid');
} else {
return $this->query->where('uniacid', $uniacid)->get();
}
}
}