修改H5链接域名
This commit is contained in:
@@ -9,8 +9,10 @@
|
|||||||
#define ApiHost_h
|
#define ApiHost_h
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
#define API_HOST_H5_URL @"https://h5.nnbc123.cn"
|
||||||
#define API_HOST_URL @"https://api.nnbc123.cn"
|
#define API_HOST_URL @"https://api.nnbc123.cn"
|
||||||
#else
|
#else
|
||||||
|
#define API_HOST_H5_URL @"https://h5.nnbc123.cn"
|
||||||
#define API_HOST_URL @"https://api.nnbc123.cn"
|
#define API_HOST_URL @"https://api.nnbc123.cn"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -424,7 +424,7 @@ NSString * const kSaveBase64Image = @"saveBase64Image";
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (![_url hasPrefix:@"http"] && ![_url hasPrefix:@"https"]){
|
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:@"?"]) {
|
if (![_url containsString:@"?"]) {
|
||||||
|
Reference in New Issue
Block a user