12345678910111213141516171819202122 |
- <?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');
- load()->model('account');
- load()->model('mc');
- if(!empty($_W['uniacid'])) {
- $setting = uni_setting($_W['uniacid'], array('sync'));
- $sync_setting = $setting['sync'];
- if($sync_setting == 1 && $_W['account']['type'] == 1 && $_W['account']['level'] >= ACCOUNT_TYPE_OFFCIAL_AUTH) {
- $fans = pdo_getall('mc_mapping_fans', array('uniacid' => $_W['uniacid'], 'follow' => 1), array('fanid', 'openid', 'acid', 'uid', 'uniacid'), 'fanid', array('updatetime ASC', 'fanid DESC'), '10');
- if(!empty($fans)) {
- foreach($fans as $row) {
- mc_init_fans_info($row['openid']);
- }
- }
- }
- }
|