| 1234567891011121314151617181920212223242526272829303132333435 | ////  GoodsDetailsVM.m//  Asteria////  Created by 王猛 on 2023/5/10.//#import "GoodsDetailsVM.h"@implementation GoodsDetailsVM-(void)ucm_confignormalnetworksuccesswithresponse:(UCMHttpRequestResponse *)response{    if([response.ucm_responseObject[@"code"] integerValue] == -1){        [MBProgressHUD hideHUDForView:[Current_normalTool topViewController].view animated:YES];        return;    }    if([response.ucm_responseMark isEqualToString:GoodsDetails_productGetProduct]){        GoodsInformationM *model = [GoodsInformationM mj_objectWithKeyValues:response.ucm_responseObject[@"data"][@"product"]];        NSMutableArray *tempImgAry = [[NSMutableArray alloc]init];        for (NSDictionary *tempDic in model.imgarr) {            if([tempDic[@"type"] isEqualToString:@"mp4"]){                model.mp4Str = tempDic[@"url"];            }else if([tempDic[@"type"] isEqualToString:@"img"]){                [tempImgAry addObject:tempDic];            }        }        model.imgDicAry  = [tempImgAry copy];        [self ucm_configNewsRepose:response data:[NSMutableArray arrayWithObject:model] success:YES has_more:NO mark:response.ucm_responseMark extend_info:@{}];    }}-(void)ucm_confignormalnetworkfailwithresponse:(UCMHttpRequestResponse *)response{    [self ucm_configNewsRepose:response data:[NSMutableArray array] is_showmsg:YES is_list:NO success:NO has_more:NO mark:response.ucm_responseMark extend_info:@{}];}@end
 |