4d84a934
曹明
初始代码提交
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?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.
*/
defined('IN_IA') or exit('Access Denied');
class FansTable extends We7Table {
protected $field = array('uid');
protected $tableName = 'mc_mapping_fans';
public function fansAll($openids) {
global $_W;
return $this->query->from('mc_mapping_fans')
->where('openid', $openids)
->where('uniacid', $_W['uniacid'])
->where('acid', $_W['acid'])
->getall('openid');
}
public function fansInfo($openid) {
return $this->query->from('mc_mapping_fans')->where('openid', $openid)->get();
}
public function oauthFans($oauth_openid) {
return $this->query->from('mc_oauth_fans')->where('oauth_openid', $oauth_openid)->get();
}
public function tagGroup($uniacid) {
$groups = $this->query->from('mc_fans_groups')->where('uniacid', $uniacid)->getcolumn('groups');
return !empty($groups) ? iunserializer($groups) : array();
}
}
|