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.
20 lines
612 B
20 lines
612 B
<?php
|
|
|
|
|
|
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 (1 == $sync_setting && $_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'), 'fanid', array('updatetime ASC', 'fanid DESC'), '10');
|
|
if (!empty($fans)) {
|
|
foreach ($fans as $row) {
|
|
mc_init_fans_info($row['openid']);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|