Open peterli09 opened 2 years ago
BUG描述
导入响应内容,offerCount 有-1 的值 ,结果通过mock 没有offerCount -1
复现步骤
http://rap2api.taobao.org/app/mock/295819/CapitalOne
期望结果
{ "usageLifeCycleId": "6d6fecaf-b5a5-42f6-8a74-977b4b4f55bf", "offers": [ { "offerType": "GUEST_DISCOUNTED_RATE", "offerDescription": "Discounted rate for guests.", "offerCount": -1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_FREE_PASS", "offerDescription": "Two free passes are offered annually to eligible card holders.", "offerCount": -1, "offerPaymentAmount": "0.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_DISCOUNTED_RATE", "offerDescription": "Discounted rate for rewards cards.", "offerCount": 1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" } ], "isEligible": true, "ineligibleReasonCode": 0, "ineligibleReasonMessage": "" }
实际结果 { "usageLifeCycleId": "6d6fecaf-b5a5-42f6-8a74-977b4b4f55bf", "offers": [ { "offerType": "GUEST_DISCOUNTED_RATE", "offerDescription": "Discounted rate for guests.", "offerCount": -1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_FREE_PASS", "offerDescription": "Two free passes are offered annually to eligible card holders.", "offerCount": 0, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_DISCOUNTED_RATE", "offerDescription": "Discounted rate for rewards cards.", "offerCount": 1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" } ], "isEligible": true, "ineligibleReasonCode": 0, "ineligibleReasonMessage": "" }
截图
环境
BUG描述
导入响应内容,offerCount 有-1 的值 ,结果通过mock 没有offerCount -1
复现步骤
http://rap2api.taobao.org/app/mock/295819/CapitalOne
期望结果
{ "usageLifeCycleId": "6d6fecaf-b5a5-42f6-8a74-977b4b4f55bf", "offers": [ { "offerType": "GUEST_DISCOUNTED_RATE", "offerDescription": "Discounted rate for guests.", "offerCount": -1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_FREE_PASS", "offerDescription": "Two free passes are offered annually to eligible card holders.", "offerCount": -1, "offerPaymentAmount": "0.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_DISCOUNTED_RATE", "offerDescription": "Discounted rate for rewards cards.", "offerCount": 1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" } ], "isEligible": true, "ineligibleReasonCode": 0, "ineligibleReasonMessage": "" }
实际结果 { "usageLifeCycleId": "6d6fecaf-b5a5-42f6-8a74-977b4b4f55bf", "offers": [ { "offerType": "GUEST_DISCOUNTED_RATE", "offerDescription": "Discounted rate for guests.", "offerCount": -1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_FREE_PASS", "offerDescription": "Two free passes are offered annually to eligible card holders.", "offerCount": 0, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" }, { "offerType": "CARD_HOLDER_DISCOUNTED_RATE", "offerDescription": "Discounted rate for rewards cards.", "offerCount": 1, "offerPaymentAmount": "45.00", "offerPaymentAmountCurrencyCode": "USD" } ], "isEligible": true, "ineligibleReasonCode": 0, "ineligibleReasonMessage": "" }
截图
环境