第一篇:人人商城-2018年1月微信升级头像不显示解决方案范文
2017年12月微信更新头像规则,导致人人商城头像无法显示,针对这个规则调整给出修改解决方法。
framework/builtin/core/receiver.php $userinfo['headimgurl'] = rtrim($userinfo['headimgurl'], $userinfo['headimgurl'] = $userinfo['headimgurl'];
framework/model/mc.mod.php $userinfo['headimgurl'] = rtrim($userinfo['headimgurl'], $userinfo['headimgurl'] = $userinfo['headimgurl'];
'0')
.132;
替换
为
'0').132;替换为
$fans['headimgurl'] = rtrim($fans['headimgurl'], '0').132;替换为 $fans['headimgurl'] = $fans['headimgurl'];
$rec['avatar'] = rtrim($fan['headimgurl'], '0').132;
替换为
$rec['avatar'] = $fan['headimgurl'];
app/source/mc/profile.ctrl.php empty($profile['avatar'])?($data['avatar'] = rtrim($map_fans['headimgurl'], '0').132): '';替换为 empty($profile['avatar'])?($data['avatar'] = $map_fans['headimgurl']): '';
app/source/auth/register.ctrl.php $data['avatar'] = rtrim($map_fans['headimgurl'], '0').132;替换为
$data['avatar'] = $map_fans['headimgurl'];
app/source/auth/oauth.ctrl.php
(修改2处)$userinfo['headimgurl'] = rtrim($userinfo['headimgurl'], '0').132;替换为 $userinfo['headimgurl'] =$userinfo['headimgurl'];
app/source/auth/forward.ctrl.php $record['avatar'] = rtrim($userinfo['headimgurl'], '0').132;替换为 $record['avatar'] = $userinfo['headimgurl'];