小程序
小游戏
企业微信
微信支付
扫描小程序码分享
调用创建代金券接口,代金券类型为“CASH”,在data_info中设置type为2或DATETYPE FIX_TERM时,fixed_begin _term字段设置为0一直提示时间错误:invalid time :
但是设置为非0的正整数就可以验证通过:
官方文档上说是可以为0的,请问一下各位大神,这到底是什么情况?
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
您好,请将您的所有请求参数发出来。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
请求内容:
{
"card"
: {
"card_type"
:
"CASH"
,
"cash"
"base_info"
"logo_url"
"http://mmbiz.qpic.cn/mmbiz_png/9ZAVsjRuwHRfcptr1IAJs15pbiaqbttBYswAZs2A5njajd8qlljTJfjaLfy6s7J1PNmFY1kcgZLeoicfrs3Zw4tA/0"
"pay_info"
"swipe_card"
"create_mid"
"1521068011"
"use_mid_list"
: [
],
"is_swipe_card"
true
}
},
"brand_name"
"测试"
"code_type"
"CODE_TYPE_QRCODE"
"title"
"测试领取后有效"
"color"
"Color010"
"notice"
"请出示二维码"
"service_phone"
null
"description"
""
"date_info"
"type"
"DATE_TYPE_FIX_TERM"
"fixed_term"
: 2,
"fixed_begin_term"
: 0
"can_share"
false
"center_title"
"立即使用"
"center_url"
"http://www.baidu.com"
"center_app_brand_user_name"
"center_app_brand_pass"
"custom_url_name"
"custom_url"
"custom_url_sub_title"
"custom_app_brand_user_name"
"custom_app_brand_pass"
"promotion_url_name"
"promotion_url"
"promotion_url_sub_title"
"promotion_app_brand_user_name"
"promotion_app_brand_pass"
"can_give_friend"
"sku"
"quantity"
: 10
"get_limit"
: 1
"advanced_info"
"use_condition"
"accept_category"
"reject_category"
"无"
"can_use_with_other_discount"
"least_cost"
"1100"
"abstract"
"text_image_list"
"reduce_cost"
: 1000,
: 1100
返回提示:
"errcode"
: 40079,
"errmsg"
"invalid time hint: [NTnbNA07045320]"
您好,您的跟时间有关的字段都没有写。
按照官方文档写的参数,难道是type为2或DATETYPE FIX_TERM时,begin_timestamp和end_timestamp也要写吗?如果写的话,这两个冗余字段应该是什么值呢?
其他参数一模一样,fixed_begin_term 参数为 1 就可以请求成功,但是为 0 就不行
您好,首先您要明白,不管是何种类型,他都有开始结束时间,这是必传字段,你选择2,就是在开始结束时间里面做文章,请仔细阅读文档。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
您好,请将您的所有请求参数发出来。
请求内容:
{"card": {"card_type":"CASH","cash": {"base_info": {"logo_url":"http://mmbiz.qpic.cn/mmbiz_png/9ZAVsjRuwHRfcptr1IAJs15pbiaqbttBYswAZs2A5njajd8qlljTJfjaLfy6s7J1PNmFY1kcgZLeoicfrs3Zw4tA/0","pay_info": {"swipe_card": {"create_mid":"1521068011","use_mid_list": ["1521068011"],"is_swipe_card":true}},"brand_name":"测试","code_type":"CODE_TYPE_QRCODE","title":"测试领取后有效","color":"Color010","notice":"请出示二维码","service_phone":null,"description":"","date_info": {"type":"DATE_TYPE_FIX_TERM","fixed_term": 2,"fixed_begin_term": 0},"can_share":false,"center_title":"立即使用","center_url":"http://www.baidu.com","center_app_brand_user_name":null,"center_app_brand_pass":null,"custom_url_name":null,"custom_url":null,"custom_url_sub_title":null,"custom_app_brand_user_name":null,"custom_app_brand_pass":null,"promotion_url_name":null,"promotion_url":null,"promotion_url_sub_title":null,"promotion_app_brand_user_name":null,"promotion_app_brand_pass":null,"can_give_friend":false,"sku": {"quantity": 10},"get_limit": 1},"advanced_info": {"use_condition": {"accept_category":"测试","reject_category":"无","can_use_with_other_discount":false,"least_cost":"1100"},"abstract":null,"text_image_list":null},"reduce_cost": 1000,"least_cost": 1100}}}返回提示:
{"errcode": 40079,"errmsg":"invalid time hint: [NTnbNA07045320]"}您好,您的跟时间有关的字段都没有写。
按照官方文档写的参数,难道是type为2或DATETYPE FIX_TERM时,begin_timestamp和end_timestamp也要写吗?如果写的话,这两个冗余字段应该是什么值呢?
其他参数一模一样,fixed_begin_term 参数为 1 就可以请求成功,但是为 0 就不行
您好,首先您要明白,不管是何种类型,他都有开始结束时间,这是必传字段,你选择2,就是在开始结束时间里面做文章,请仔细阅读文档。