Sfoglia il codice sorgente

1.修改NPD Cart,使用条件编译区分Back Order。

Pen Li 8 anni fa
parent
commit
1b3bfd18e9

+ 7 - 0
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -28,7 +28,10 @@
 #import "Singleton.h"
 #import "JKMessageBoxController.h"
 #import "RAPDFViewController.h"
+
+#ifdef BUILD_NPD
 #import "RAOrderEditorViewController.h"
+#endif
 
 #define ALERT_FREE 1024
 #define ALERT_DEL 1025
@@ -665,7 +668,11 @@
                 [loadingView dismissWithClickedButtonIndex:0 animated:YES];
                 
                 //            self.content_data = [cart_json mutableCopy];
+#ifdef BUILD_NPD
                 weakself.back_order_flag = [[cart_json objectForKey:@"back_order_version"] boolValue];
+#else
+                weakself.back_order_flag = NO;
+#endif
                 
                 if (!weakself.back_order_flag) {
                     weakself.freejson = [cart_json objectForKey:@"freeGiveaway"];