关于账户同步登录退出的bug
[*]/*修改此处 count($_CACHE['apps']) 大于 0 不是大于 1 */[*]function uc_user_synlogin($uid) {
[*] $uid = intval($uid);
[*] if(@include UC_ROOT.'./data/cache/apps.php') {
[*] if(count($_CACHE['apps']) > 0/*源码为1*/) {
[*] $return = uc_api_post('user', 'synlogin', array('uid'=>$uid));
[*] } else {
[*] $return = '';
[*] }
[*] }
[*] return $return;
[*]}
[*]
[*]/*修改此处 count($_CACHE['apps']) 大于 0 不是大于 1 */
[*]function uc_user_synlogout() {
[*] if(@include UC_ROOT.'./data/cache/apps.php') {
[*] if(count($_CACHE['apps']) > 0) {
[*] $return = uc_api_post('user', 'synlogout', array());
[*] } else {
[*] $return = '';
[*] }
[*] }
[*] return $return;
[*]}复制代码
什么东东啊?楼主请说明白点。
啥情况啊,研究一下
页:
[1]