You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
556 B
28 lines
556 B
<?php
|
|
|
|
namespace We7\Table\Mc;
|
|
|
|
class OauthFans extends \We7Table {
|
|
protected $tableName = 'mc_oauth_fans';
|
|
protected $primaryKey = 'id';
|
|
protected $field = array(
|
|
'oauth_openid',
|
|
'uniacid',
|
|
'uid',
|
|
'openid',
|
|
);
|
|
protected $default = array(
|
|
'oauth_openid' => '',
|
|
'uniacid' => '',
|
|
'uid' => '',
|
|
'openid' => '',
|
|
);
|
|
|
|
public function searchWithoAuthopenid($oauth_openid) {
|
|
return $this->query->where('oauth_openid', $oauth_openid);
|
|
}
|
|
|
|
public function searchWithUniacid($uniacid) {
|
|
return $this->query->where('uniacid', $uniacid);
|
|
}
|
|
}
|