部分同学在使用pw 9.0.1的1223版本中出现如下图问题:
图片:您还没有登录.png
问题原因及解决方案如下:
不是登录的问题,应该是firebug/360浏览器flash有bug不支持继承浏览器的 cookie
修改文件:
upload/src/applications/bbs/controller/UploadController.php
拉到最后
找到 protected function _getUser(){.....} 这个方法,改成如下
上面那个贴子的修改方法,发推广贴,上传不了图片,下面的修改方式,已经兼容了这两个上传方式
复制代码
protected function _getUser(){
$authkey = 'winduser';
$pre = Wekit::C('site', 'cookie.pre');
$pre && $authkey = $pre . '_' . $authkey;
$winduser = $this->getInput($authkey, 'post');
if( !$winduser ){
$winduser = Pw::getCookie('winduser');
}
list($uid, $password) = explode("\t", Pw::decrypt(urldecode($winduser)));
$user = new PwUserBo($uid);
if (!$user->isExists() || Pw::getPwdCode($user->info['password']) != $password) {
return null;
}
unset($user->info['password']);
return $user;
}
感谢 的解决方案,官方将会在后续版本中进行更新。
原帖参考: |
|