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.
52 lines
962 B
52 lines
962 B
<?php
|
|
|
|
namespace We7\Table\Mc;
|
|
|
|
class MappingFans extends \We7Table {
|
|
protected $tableName = 'mc_mapping_fans';
|
|
protected $primaryKey = 'fanid';
|
|
protected $field = array(
|
|
'acid',
|
|
'uniacid',
|
|
'uid',
|
|
'openid',
|
|
'nickname',
|
|
'groupid',
|
|
'salt',
|
|
'follow',
|
|
'followtime',
|
|
'unfollowtime',
|
|
'tag',
|
|
'updatetime',
|
|
'unionid',
|
|
'user_from',
|
|
);
|
|
protected $default = array(
|
|
'acid' => '',
|
|
'uniacid' => '0',
|
|
'uid' => '0',
|
|
'openid' => '',
|
|
'nickname' => '',
|
|
'groupid' => '',
|
|
'salt' => '',
|
|
'follow' => '1',
|
|
'followtime' => '',
|
|
'unfollowtime' => '',
|
|
'tag' => '',
|
|
'updatetime' => '0',
|
|
'unionid' => '',
|
|
'user_from' => '',
|
|
);
|
|
|
|
public function searchWithUniacid($uniacid) {
|
|
return $this->query->where('uniacid', $uniacid);
|
|
}
|
|
|
|
public function searchWithOpenid($openid) {
|
|
return $this->query->where('openid', $openid);
|
|
}
|
|
|
|
public function searchWithUnionid($unionid) {
|
|
return $this->query->where('unionid', $unionid);
|
|
}
|
|
}
|