报错:{errcode=47001, errmsg=data format error hint: [ZFPY60369r268] Error before ":"XXXX教育","can_give_friend":false,"custom_app_brand_pass":"pages/index/index","title":"枫慧卡","not...}
提交的json数据:
{"card_id":"XXXAIzw","general_card":{"custom_cell1":{"name":"服务大厅","tips":"进入","url":"XXXX"},"custom_field1":{"name":"姓名","url":"XXX"},"custom_field2":{"name":"消息通知","url":"XXX"},"base_info":{"center_app_brand_user_name":"gh_XXXXX27@app","center_app_brand_pass":"pages/index/index","custom_app_brand_user_name":"gh_XXX7@app","get_limit":1,"color":"Color010","logo_url":"XXXXX","description":"每人限领1张,用于食堂消费及身份认证。","brand_name":"XXXX教育","can_give_friend":false,"custom_app_brand_pass":"pages/index/index","title":"枫慧卡","notice":""},"activate_url":"XXXXX","background_pic_url":"XXXX"}}
我查了下现在卡券信息:
{
"code": "0",
"data": "{\"card_type\":\"GENERAL_CARD\",\"general_card\":{\"custom_cell1\":{\"name\":\"服务大厅\",\"tips\":\"进入\",\"url\":\"XXX\"},\"advanced_info\":{\"time_limit\":[],\"text_image_list\":[],\"share_friends\":false,\"business_service\":[],\"consume_share_card_list\":[]},\"prerogative\":\"test_prerogative\",\"custom_cell2\":{\"name\":\"\",\"tips\":\"\",\"url\":\"\"},\"supply_bonus\":false,\"custom_field1\":{\"name\":\"姓名\",\"url\":\"XXXX\"},\"sub_card_type\":\"CAMPUS_CARD\",\"custom_field2\":{\"name\":\"消息通知\",\"url\":\"XXX\"},\"base_info\":{\"center_url\":\"https://www.qq.com\",\"center_app_brand_pass\":\"pages/index/index\",\"get_limit\":1,\"custom_app_brand_user_name\":\"gh_XX27@app\",\"pay_info\":{\"swipe_card\":{\"use_mid_list\":[],\"is_swipe_card\":true}},\"color\":\"#63b359\",\"create_time\":1586015276,\"logo_url\":\"XXXX\",\"center_title\":\"刷校园码\",\"description\":\"每人限领1张,用于食堂消费及身份认证。\",\"brand_name\":\"XXXX学校\",\"can_give_friend\":false,\"location_id_list\":[],\"title\":\"电子校园卡\",\"area_code_list\":[],\"center_app_brand_user_name\":\"gh_XXX27@app\",\"update_time\":1591154261,\"date_info\":{\"type\":\"DATE_TYPE_PERMANENT\"},\"id\":\"XXXIzw\",\"custom_app_brand_pass\":\"pages/index/index\",\"sku\":{\"quantity\":99999974,\"total_quantity\":100000000},\"code_type\":\"CODE_TYPE_NONE\",\"notice\":\"\",\"status\":\"CARD_STATUS_VERIFY_OK\"},\"supply_balance\":false,\"activate_url\":\"XXXX\",\"background_pic_url\":\"XXX\"}}",
"msg": "ok",
"success": true
}
自己解决了 ,原来是brand_name 不让修改