thx / rap2-delos

阿里妈妈前端团队出品的开源接口管理工具RAP第二代
http://rap2.taobao.org
MIT License
7.64k stars 1.35k forks source link

mock 响应内容与导入内容不一致 #858

Open peterli09 opened 2 years ago

peterli09 commented 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": "" }

截图 image

环境