修改H5链接域名

This commit is contained in:
chenshuanglin
2023-03-20 19:40:05 +08:00
parent 6892f0535b
commit 7bb4f2f160
2 changed files with 3 additions and 1 deletions

View File

@@ -9,8 +9,10 @@
#define ApiHost_h
#ifdef DEBUG
#define API_HOST_H5_URL @"https://h5.nnbc123.cn"
#define API_HOST_URL @"https://api.nnbc123.cn"
#else
#define API_HOST_H5_URL @"https://h5.nnbc123.cn"
#define API_HOST_URL @"https://api.nnbc123.cn"
#endif

View File

@@ -424,7 +424,7 @@ NSString * const kSaveBase64Image = @"saveBase64Image";
return;
}
if (![_url hasPrefix:@"http"] && ![_url hasPrefix:@"https"]){
_url = [NSString stringWithFormat:@"%@/%@", API_HOST_URL, _url];
_url = [NSString stringWithFormat:@"%@/%@", API_HOST_H5_URL, _url];
}
if (![_url containsString:@"?"]) {