wxyhhy911 发表于 2012-8-26 17:47:12

关于账户同步登录退出的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;
[*]}复制代码

dgcq 发表于 2012-8-27 23:15:40


什么东东啊?楼主请说明白点。

wlxinren 发表于 2013-1-29 12:39:01


啥情况啊,研究一下
页: [1]
查看完整版本: 关于账户同步登录退出的bug