|
@ -37,179 +37,6 @@ class PhoneCardRechargeService: PhoneCardRechargeServiceType { |
|
|
failure: @escaping (Error) -> Void |
|
|
failure: @escaping (Error) -> Void |
|
|
) { |
|
|
) { |
|
|
|
|
|
|
|
|
// let testString = |
|
|
|
|
|
// """ |
|
|
|
|
|
// { |
|
|
|
|
|
// "ErrorCode": "0", |
|
|
|
|
|
// "Msg": "Success", |
|
|
|
|
|
// "Id": "", |
|
|
|
|
|
// "Extra": "", |
|
|
|
|
|
// "Extra2": "", |
|
|
|
|
|
// "Data": { |
|
|
|
|
|
// "CardListType": "1", |
|
|
|
|
|
// "ButtonsGrid": [ |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "10000" |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "20000" |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "30000" |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "40000" |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "50000" |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "Price": "100000" |
|
|
|
|
|
// } |
|
|
|
|
|
// ], |
|
|
|
|
|
// "CountryPriceCode": null, |
|
|
|
|
|
// "CardInfo": [ |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_04", |
|
|
|
|
|
// "CardName": "7 Mobile 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "Nomal", |
|
|
|
|
|
// "CardName": "Nomal - (10,000)", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_01", |
|
|
|
|
|
// "CardName": "SK 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_02", |
|
|
|
|
|
// "CardName": "LG 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_03", |
|
|
|
|
|
// "CardName": "KT 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_05", |
|
|
|
|
|
// "CardName": "Mobing 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_06", |
|
|
|
|
|
// "CardName": "EYES 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_07", |
|
|
|
|
|
// "CardName": "EG FreeData 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_08", |
|
|
|
|
|
// "CardName": "M Mobile 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_09", |
|
|
|
|
|
// "CardName": "스노우맨 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_10", |
|
|
|
|
|
// "CardName": "MyWorld 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_11", |
|
|
|
|
|
// "CardName": "WHOM 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_13", |
|
|
|
|
|
// "CardName": "K mobile 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_14", |
|
|
|
|
|
// "CardName": "FREE T 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_15", |
|
|
|
|
|
// "CardName": "FREE C 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_18", |
|
|
|
|
|
// "CardName": "EYAGI 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_19", |
|
|
|
|
|
// "CardName": "Blue Mobile 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_21", |
|
|
|
|
|
// "CardName": "DREAM 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// }, |
|
|
|
|
|
// { |
|
|
|
|
|
// "CardCode": "PPS_22", |
|
|
|
|
|
// "CardName": "Smatel 일반요금제", |
|
|
|
|
|
// "FacePrice": "10000", |
|
|
|
|
|
// "SubInfo": null, |
|
|
|
|
|
// "Promotion_price": null |
|
|
|
|
|
// } |
|
|
|
|
|
// ] |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// """ |
|
|
|
|
|
// let json = ResponseContainerObject<CardList>(JSONString: testString) |
|
|
|
|
|
// guard let test = json?.data else { return } |
|
|
|
|
|
// success(test) |
|
|
|
|
|
|
|
|
|
|
|
APIRouter.fetchCardList(type: type, mobile: mobile) |
|
|
APIRouter.fetchCardList(type: type, mobile: mobile) |
|
|
.json(success: success, failure: failure) |
|
|
.json(success: success, failure: failure) |
|
|
} |
|
|
} |
|
|