dev环境的问题.md 7.1 KB

问题一:查询车场信息提示异常

受影响接口:

/parking-lots/lbs/{lbsId}
/vehicles/check-eligibility/%E6%B5%99A11111
/parking/check-out?vehicleNo=浙A11111&unlicensed=false

以下是/parking-lots/lbs/{lbsId} 的CURL请求案例

curl 'https://dev-gateway-kip.kerryonvip.com/api/temporary-parking/v1/parking-lots/lbs/8aaa80b47c784020017c78b00d060022' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
  -H 'Cache-Control: no-cache' \
  -H 'Connection: keep-alive' \
  -H 'Origin: http://127.0.0.1:8080' \
  -H 'Parking-User: {"sourceType":"WECHAT","brandId":"4028e3817c2b3f79017c2b48c54c0000","cid":"oudWQ5SCDElfn-IQH6eBR5JesOz4","lbsId":"8aaa80b47c784020017c78b00d060022","sourceId":"o5zJv5ok9WEm1PZFKkTEuhnTUCf8","isLogin":false}' \
  -H 'Pragma: no-cache' \
  -H 'Referer: http://127.0.0.1:8080/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/120.0.0.0' \
  -H 'channel: undefined' \
  -H 'utm_method: dr' \
  -H 'withCredentials: false' \
  --compressed

响应

{
    "code": "VALIDATION_FAILED",
    "message": "buildingIds is empty while save to redis",
    "timestamp": "2024-01-05 10:55:01",
    "langMessage": "参数异常,请重试",
    "conversationId": "XPS-ed9-41ed27f7b712"
}

问题二:停车场配置的 /conf-values 接口提示404

curl --location --request POST 'https://dev-kip-service-internal.kerryonvip.com/item-lease-service/conf-values' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: dev-kip-service-internal.kerryonvip.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"key": "ncParkingSwitch",
"value": {
"switch": true,
"description": "南昌停车入口开关",
"key": "ncParkingSwitch"
},
"description": "南昌停车入口开关"
}'

响应

{
	"timestamp": 1704423788930,
	"status": 404,
	"error": "Not Found",
	"path": "/conf-values"
}

问题三:/parking/calculate-discount 接口调用失败

curl --location --request POST 'https://dev-gateway-kip.kerryonvip.com/api/temporary-parking/v1/parking/calculate-discount' \

--header 'Parking-User: {"userId":"2c9d85868652dee50186532bdbbb0001","sourceType":"WECHAT","phoneNumber":"15267617473","brandId":"4028e3817c2b3f79017c2b48c54c0000","cid":"oudWQ5SCDElfn-IQH6eBR5JesOz4","vipCode":"KERRY100213851","lbsId":"8aaa80b47c784020017c78b00d060022","sourceId":"o5zJv5ok9WEm1PZFKkTEuhnTUCf8","isLogin":true}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: dev-gateway-kip.kerryonvip.com' \
--header 'Connection: keep-alive' \
--header 'Cookie: acw_tc=76b20f6b17044249473665412e2b429826c87932d33e0e116dda0cfb297c34' \
--data-raw '{
"parkingRecord": {
"vehicleNo": "鲁A10001",
"enterTime": "2023-06-13 10:50:08",
"serviceMin": 24836,
"totalFee": 5000,
"actualPayFee": 50.0,
"thirdPartyId": "_1_29bcc3e1_1688114804262",
"thirdParkOrderNo": "29bcc3e1b5b64aec9ad0213e7dd0fd65",
"createdByQrCode": false,
"totalFeeInYuan": 50.00
},
"discountInfo": {
"usingTotalDiscount": 0,
"memberLevelDiscount": true,
"memberGrade": [
{
"defaultSelected": true,
"selected": false,
"memberGrade": "3",
"memberGradeText": "铂金卡",
"discountTime": 4,
"discountFee": 40
}
],
"consume": [
{
"defaultSelected": true,
"selected": false,
"maxDiscountTime": 2,
"defaultDiscountTime": 4,
"discountFee": 40,
"redeemSalesAmount": 400
}
],
"coupons": [
{

"code": "3kywfljbbqe_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "310ia9b7lzo_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "zbh3xkmjhtn_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "vouvwoaqs72_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "1q4ynh60yff_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "b7in3if3d6k_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "olcutlmm2b8_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

},

{

"code": "vj160la3aot_t",

"couponId": "c52f5e3c5bb44b29a53c49c0a93eb47e",

"selected": false,

"status": "available",

"name": "停车券(可叠加券)",

"expirationDate": "2023-06-30 23:59:59",

"discountFee": 10,

"defaultSelected": false,

"superposition": "2",

"limitCountPerOrder": 7

}

],

"paperCoupons": [

{

"description": "请扫描纸质停车优惠券二维码,获取停车优惠",

"selected": false

}

]

},

"parkingRule": {

"enableNewMemberPoints": false,

"enablePoints": false,

"unLimitWeekendPoints": false,

"enableCoupon": true,

"maxOneDayCoupons": 5,

"remainCoupons": 5,

"enablePaperCoupons": true,

"enableConsume": true,

"enableConsumeNonSplit": true,

"maxConsumeTime": 6,

"remainConsumeTime": 2,

"hourPrice": 10,

"oneTimeLimitation": false,

"oneDayLimitation": false

},

"parkInfo": {

"parkName": "杭州嘉里中心",

"description": "基础计费规则:10元/小时\n会员权益减免:铂金卡4小时,金卡2小时,臻选银卡1小时,每日限享优惠权益1次,不可拆分使用,可与消费抵免叠加使用。\n会员消费减免:消费200元可减免2小时,消费400元可减免4小时,消费800元及以上可减免6小时,当日有效,单次获得的减免不可拆分使用,当日最多可享受消费减免6小时。",

"parkMallCode": 2,

"buildingId": "HKC-P1"

}

}'

返回

{
"code": "VALIDATION_FAILED",
"message": "buildingId is blank",
"timestamp": "2024-01-05 11:30:25",
"langMessage": "params error",
"conversationId": "XPS-6e4-d1aeafd4177b"
}