人人商城v2获取头像出错多出132132
生活随笔
收集整理的這篇文章主要介紹了
人人商城v2获取头像出错多出132132
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
/addons/ewei_shopv2/core/model/memeber.php
v2:
if (!(empty($info))) {if (!(strexists($info['avatar'], 'http://')) && !(strexists($info['avatar'], 'https://'))) {$info['avatar'] = tomedia($info['avatar']);}if ($_W['ishttps']) {$info['avatar'] = str_replace('http://', 'https://', $info['avatar']);}$info = $this->updateCredits($info);}v3:
if (!(empty($info))) {if (!(strexists($info['avatar'], 'http://')) && !(strexists($info['avatar'], 'https://'))) {$info['avatar'] = tomedia($info['avatar']);}if ($_W['ishttps']) {$info['avatar'] = str_replace('http://', 'https://', $info['avatar']);}if(strpos($info['avatar'],'132132')){$upgrade2=array();$upgrade2['avatar'] = str_replace('132132', '132', $info['avatar']);pdo_update('ewei_shop_member', $upgrade2, array('id' => $info['id']));}$info = $this->updateCredits($info);}獲取信息時(shí)去掉132132后的132
轉(zhuǎn)載于:https://my.oschina.net/u/3104120/blog/1617398
總結(jié)
以上是生活随笔為你收集整理的人人商城v2获取头像出错多出132132的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 三角形内随机生成一个点
- 下一篇: 关于RF中类似于异常(TRY语句)情况的