| 123456789101112131415161718192021222324252627282930313233 | 
							- //
 
- //  ASOrderDetailsVM.m
 
- //  Asteria
 
- //
 
- //  Created by xingyu on 2024/5/15.
 
- //
 
- #import "ASOrderDetailsVM.h"
 
- @implementation ASOrderDetailsVM
 
- - (void)getOrderDetailsWithOrderid:(NSString *)orderid complete:(void(^)(ASOrderDetailsModel *))completeBlock {
 
-     NSMutableDictionary *para = [NSMutableDictionary dictionaryWithDictionary: @{
 
-         @"url": [NSString stringWithFormat:@"/V1/orders/%@", orderid],
 
-     }];
 
-     [ASNetTools.shared postWithPath:getAllOrders param:para success:^(id _Nonnull json) {
 
- //        NSLog(@"---orderDetails---result:%@------",json);
 
-         
 
-         ASOrderDetailsModel *orderModel = [ASOrderDetailsModel mj_objectWithKeyValues:json];
 
-         for (ASOrderDetailsItemModel *itemModel in orderModel.items) {
 
-             itemModel.currency_symbol = orderModel.currency_symbol;
 
-         }
 
-         
 
-         completeBlock(orderModel);
 
-         
 
-     } faild:^(NSString * _Nonnull code, NSString * _Nonnull msg) {
 
- //        NSLog(@"---orderDetails---code:%@--msg:%@----", code, msg);
 
-         completeBlock(nil);
 
-     }];
 
- }
 
- @end
 
 
  |