接口參數(json)

- (id)requestArgument
{
    NSMutableDictionary * argument =[NSMutableDictionary dictionaryWithCapacity:1];
    NSMutableDictionary *arg = [NSMutableDictionary dictionaryWithCapacity:1];
    [argument setValue:_phoneCode forKey:@"phoneCode"];
    [argument setValue:_phoneNumber forKey:@"phoneNumber"];
    [argument setValue:_type forKey:@"type"];
    [argument setValue:_nick forKey:@"nick"];
    NSString *jsonStr = [argument mj_JSONString];
    [arg setValue:jsonStr forKey:@"json"];
    return arg;
}
相關文章
相關標籤/搜索