问题描述
- 微信卡券创建,总是爆470001
-
谁能帮我看看
{"errcode":47001,"errmsg":"data format error"}
{
"card": {
"card_type": "CASH",
"cash": {
"base_info": {
"logo_url":"https://mmbiz.qlogo.cn/mmbiz/F1aDgfLpPV7VGGricnxvDpRnMP05vbQpFPyydqrStFjgELO9Xqdbs5pd91IhdOFUmgUoDjxnLdp6N3qbNEB4xYA/0",
"code_type":"CODE_TYPE_TEXT",
"brand_name": "蜘蛛网",
"title": "蜘蛛网电影折扣券",
"sub_title": "满100元减20元",
"color": "Color010",
"notice": "支付时选择使用新的抵用券",
"service_phone": "4001500666",
"description": "1、该券仅限购买蜘蛛网电影票(http://www.spider.com.cn/)n2、订单金额满100元可抵用20元n 3、该券有效日期:2014.12.31",
"use_limit": 1,
"get_limit": 1,
"use_custom_code": true,
"can_share":true,
"can_give_friend":true,
"date_info": {
"type": 1,
"begin_timestamp": 1416844800,
"end_timestamp": 1420041599
},
"sku": {
"quantity": 1000
}
},
"least_cost": 100.00,
"reduce_cost":20.00
}
}
}
解决方案
json拼接有问题,对照官方例子检查下。
解决方案二:
拼接有问题是指 顺序?还是字段有缺少?
解决方案三:
"least_cost": 100.00,
"reduce_cost":20.00
用整数,而且单位是分。
时间: 2024-12-04 17:39:17