File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ - (void)changeBaseURLTip{
82
82
[NSObject showHudTipStr: @" 需要 8.0 以上系统才能切换服务器地址" ];
83
83
return ;
84
84
}
85
- UIAlertController *alertCtrl = [UIAlertController alertControllerWithTitle: @" 更改服务器 URL" message: @" 空白值可切换回生产环境\n (地址末尾务必加上「/」) " preferredStyle: UIAlertControllerStyleAlert];
85
+ UIAlertController *alertCtrl = [UIAlertController alertControllerWithTitle: @" 更改服务器 URL" message: @" 空白值可切换回生产环境\n " preferredStyle: UIAlertControllerStyleAlert];
86
86
87
87
UIAlertAction *cancelA = [UIAlertAction actionWithTitle: @" 取消" style: UIAlertActionStyleCancel handler: nil ];
88
88
UIAlertAction *confirmA = [UIAlertAction actionWithTitle: @" 确定" style: UIAlertActionStyleDestructive handler: ^(UIAlertAction * _Nonnull action) {
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ + (BOOL)baseURLStrIsProduction{
139
139
+ (void )changeBaseURLStrTo : (NSString *)baseURLStr {
140
140
if (baseURLStr.length <= 0 ) {
141
141
baseURLStr = kBaseURLStr ;
142
+ }else if ([baseURLStr hasSuffix: @" /" ]){
143
+ baseURLStr = [baseURLStr stringByAppendingString: @" /" ];
142
144
}
143
145
144
146
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults ];
You can’t perform that action at this time.
0 commit comments