Discuz! 官方交流社區

標題: 頭像在移動端無法顯示,pc正常怎么解決 [打印本頁]

作者: 1966000833    時間: 2021-3-11 11:15
標題: 頭像在移動端無法顯示,pc正常怎么解決
手機上不顯示,uc通信正常,pc端頭像也正常
作者: 耗子    時間: 2021-3-11 12:30
  換個手機瀏覽器 或者關閉一些插件測試下
作者: allthebest    時間: 2021-3-12 00:45
本帖最后由 allthebest 于 2021-3-11 20:21 編輯

檢查 /var/www/html/upload/uc_server/avatar.php 文件(/var/www/html/upload是網站目錄)的第14行,第14行內容如下:

  1. define('UC_API', strtolower(($_SERVER[‘SERVER_PORT’] == 443 || $_SERVER[‘HTTPS’] == ‘on’ ? ‘https’ : ‘http’).’://’.$_SERVER[‘HTTP_HOST’].substr($_SERVER[‘PHP_SELF’], 0, strrpos($_SERVER[‘PHP_SELF’], '/'))));
復制代碼


把第14行改成如下內容(改之前記得先備份文件):

  1. define('UC_API', strtolower('https'.'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
復制代碼


故障解決
作者: 1966000833    時間: 2021-3-12 02:40
allthebest 發表于 2021-3-12 00:45
檢查 /var/www/html/upload/uc_server/avatar.php 文件(/var/www/html/upload是網站目錄)的第14行,第14 ...

試過,不行。還是謝謝你




歡迎光臨 Discuz! 官方交流社區 (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0