网页加载错误显示错误网址问题
This commit is contained in:
parent
99b9af2980
commit
ecf3a94b64
@ -10,9 +10,9 @@ ext {
|
||||
manifestPlaceholders = [
|
||||
//正式
|
||||
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
//測試
|
||||
// serverHost : "https://ceshi.yaoulive.com",
|
||||
serverHost : "https://ceshi.yaoulive.com",
|
||||
|
||||
//腾讯地图
|
||||
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||
|
@ -152,7 +152,7 @@ public class ZhuangBanActivity extends AbsActivity {
|
||||
// 这个方法在6.0才出现
|
||||
int statusCode = errorResponse.getStatusCode();
|
||||
if (404 == statusCode || 500 == statusCode) {
|
||||
if ( !request.getUrl().toString().contains("favicon.png")){
|
||||
if ( !request.getUrl().toString().contains("favicon")){
|
||||
htmlError.setVisibility(View.VISIBLE);
|
||||
htmlError.setText("errorCode:" + statusCode +"\n failingUrl:" + request.getUrl());
|
||||
}
|
||||
|
@ -1243,7 +1243,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
htmlUrl.append(CommonAppConfig.HOST)
|
||||
.append("/")
|
||||
.append(bean.getModel().getActivityUrl())
|
||||
.append("&nickname=")
|
||||
.append(bean.getModel().getActivityUrl().contains("?") ? "&nickname=" : "?nickname=")
|
||||
.append(userInfo.getUserNicename())
|
||||
.append("&token=")
|
||||
.append(userInfo.getToken())
|
||||
|
Loading…
Reference in New Issue
Block a user