- 当天可用的微信卡券创建和修改无效
创建一个领取后当天可用的卡券 {"card":{"card_type":"GENERAL_COUPON","general_coupon":{"base_info":{"logo_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/mXhLOiakuw03p2z2x9zrbvOA9wgBgWRcrYHBaibicUGWJGlKItMAEDlJTz06uYuyXEnFG0I0ibyP9OfZDGeBKkmtpw\/0","brand_name":"Mall","code_type":"CODE_TYPE_QRCODE","title":"当天可用的停车券","color":"Color070","notice":"请出示二维码","service_phone":"18950008489","description":"adfasdf","date_info":{"type":"DATE_TYPE_FIX_TERM","fixed_term":0,"fixed_begin_term":0},"sku":{"quantity":100000000},"get_limit":10000,"use_custom_code":true,"bind_openid":false,"can_share":false,"can_give_friend":false},"default_detail":"到店出示使用"}}} 返回 {"errcode":41011,"errmsg":"missing required fields! please check document and request json! hint: [_7IopA03925676] base.date_info().fixed_term"} 但如果把fixed_term传入1,就创建成功了。 {"card":{"card_type":"GENERAL_COUPON","general_coupon":{"base_info":{"logo_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/mXhLOiakuw03p2z2x9zrbvOA9wgBgWRcrYHBaibicUGWJGlKItMAEDlJTz06uYuyXEnFG0I0ibyP9OfZDGeBKkmtpw\/0","brand_name":"Mall","code_type":"CODE_TYPE_QRCODE","title":"当天可用的停车券","color":"Color070","notice":"请出示二维码","service_phone":"18950008489","description":"adfasdf","date_info":{"type":"DATE_TYPE_FIX_TERM","fixed_term":1,"fixed_begin_term":0},"sku":{"quantity":100000000},"get_limit":10000,"use_custom_code":true,"bind_openid":false,"can_share":false,"can_give_friend":false},"default_detail":"到店出示使用"}}} {"errcode":0,"errmsg":"ok","card_id":"XXXXXXXXXXXXXXXX"} 文档里说 [图片]
2019-04-30 - compressImage 的 quality 是线性的吗?压缩比怎么计算?
原图大小 77.012KB , quality设置为80, 压缩后的大小为56.417KB。 而 77.012 * 0.8 = 61.6096 。。。这个压缩比到底怎么计算呢?
2018-11-07