部署https后,发帖时候选择相册图片会无法显示 
 
 
 
 
解决方法: 
找到 include下的post目录下的post_albumphoto.php 
在22行左右,修改如下: 
- foreach($query as $value) {
 
 -         $value['bigpic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote'], 0);
 
 -         $value['pic'] = pic_get($value['filepath'], 'album', $value['thumb'], $value['remote']);
 
 -         $value['count'] = $count;
 
 -         //$value['url'] = (substr(strtolower($value['bigpic']), 0, 7) == 'http://' ? '' : $_G['siteurl']) . $value['bigpic'];
 
 -         $value['url'] = $value['bigpic'];
 
 -         //$value['thumburl'] = (substr(strtolower($value['pic']), 0, 7) == 'http://' ? '' : $_G['siteurl']) . $value['pic'];
 
 -         $value['thumburl'] = $value['pic'];
 
 -         $photolist[] = $value;
 
 - }
 
  复制代码 
 
原来的写法我感觉是多余的,在pic_get函数里已经获取了图片的路径,何必在去获取一次,而且判断http的话,会造成https下的问题。 
 
原文:http://www.discuz.net/thread-3844970-1-1.html |