فهرست منبع

修改Notify Me邮箱输入后全部提示请求结果。

Pen Li 9 سال پیش
والد
کامیت
372332183c

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 2 - 3
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -2967,12 +2967,11 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
                         if (resultStatus != RESULT_TRUE && resultStatus != RESULT_NO_EMAIL_ADDRESS) {
                             
                             NSString *msg = [NSString stringWithFormat:@"The email send failed"];
-                            if (resultStatus == 8) {
-                                if ([result valueForKey:@"err_msg"]) {
+                            if ([result valueForKey:@"err_msg"]) {
                                     msg = [result valueForKey:@"err_msg"];
-                                }
                             }
                             
+                            
                             UIAlertController *errorAlertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:msg preferredStyle:UIAlertControllerStyleAlert];
                             UIAlertAction *action = [UIAlertAction actionWithTitle:@"ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                                 

+ 2 - 3
RedAnt ERP Mobile/common/Functions/modelDetail/DetailViewController.m

@@ -1901,11 +1901,10 @@ self.isrefreshing=false;
                         if (resultStatus != RESULT_TRUE && resultStatus != RESULT_NO_EMAIL_ADDRESS) {
                             
                             NSString *msg = [NSString stringWithFormat:@"The email send failed"];
-                            if (resultStatus == 8) {
-                                if ([result valueForKey:@"err_msg"]) {
+                            if ([result valueForKey:@"err_msg"]) {
                                     msg = [result valueForKey:@"err_msg"];
-                                }
                             }
+
                             
                             UIAlertController *errorAlertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:msg preferredStyle:UIAlertControllerStyleAlert];
                             UIAlertAction *action = [UIAlertAction actionWithTitle:@"ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {