Просмотр исходного кода

删除提交订单的认为Crash代码。

Pen Li 9 лет назад
Родитель
Сommit
8c716c3977

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


+ 1 - 3
RedAnt ERP Mobile/common/Functions/order/CreateOrderViewController.m

@@ -156,9 +156,7 @@
 - (void)onCommitOrderClick:(id)sender {
     // get customer info
     AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
-    id var = nil;
-    NSMutableArray *foo = @[].mutableCopy;
-    [foo addObject:var];
+    
 //    if (appDelegate.user_type == USER_ROLE_CUSTOMER) {
 //        
 //        // 检查价格类型

+ 1 - 1
RedAnt ERP Mobile/common/data_provider/iSalesNetwork.m

@@ -3917,7 +3917,7 @@ repeat:
     if(appDelegate.password!=nil)
         [dic setValue:appDelegate.password forKey:@"password"];
     
-    [dic setValue:[NSNumber numberWithInteger:[so_id integerValue]] forKey:@"order_id"];
+    [dic setValue:[NSNumber numberWithInteger:[so_id integerValue]] forKey:@"orderCode"];
     [dic setValue:addr forKey:@"email"];
     
     NSData* json=nil;