修复了h5正式环境下域名不对导致的问题

This commit is contained in:
fengshuo
2022-11-01 12:08:43 +08:00
parent 28ac19411f
commit 39ab5174cf
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
#ifdef DEBUG
#define API_HOST_URL @"http://api.uat.lecheng163.com"
#else
#define API_HOST_URL @"https://yinyou.api.shengxuanwangluo.com/"
#define API_HOST_URL @"https://yinyou.api.shengxuanwangluo.com"
#endif
#endif /* ApiHost_h */

View File

@@ -169,7 +169,7 @@ NSString * const kProhibitRightSlip = @"prohibitRightSlip";
#ifdef DEBUG
if (currentUrl != nil) {
#else
if (currentUrl != nil && [currentUrl containsString:API_HOST_URL]) {
if (currentUrl != nil) {
#endif
if ([message.name isEqualToString:kJSOpenSharePage]) {
if (message.body && message.body != [NSNull null]) {