|
@@ -299,7 +299,25 @@
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- [RAUtils message_alert:[editor_json valueForKey:@"err_msg"] title:nil controller:weakself] ;
|
|
|
|
|
|
|
+ if ([self.class_name isEqualToString:@"CreateOrderViewController"]) {
|
|
|
|
|
+
|
|
|
|
|
+ NSString *err_msg = [editor_json valueForKey:@"err_msg"];
|
|
|
|
|
+ UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"Warning" message:err_msg preferredStyle:UIAlertControllerStyleAlert];
|
|
|
|
|
+ __weak typeof(self) weakself = self;
|
|
|
|
|
+ UIAlertAction *action = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
+
|
|
|
|
|
+ [weakself.navigationController popViewControllerAnimated:YES];
|
|
|
|
|
+
|
|
|
|
|
+ }];
|
|
|
|
|
+ [alertVC addAction:action];
|
|
|
|
|
+
|
|
|
|
|
+ [self presentViewController:alertVC animated:YES completion:nil];
|
|
|
|
|
+
|
|
|
|
|
+ } else {
|
|
|
|
|
+
|
|
|
|
|
+ [RAUtils message_alert:[editor_json valueForKey:@"err_msg"] title:nil controller:weakself] ;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|