收藏
回答

微信开卡组件有个字段设置为多选,在拉取会员信息时值返回为空字符串是什么原因?

问题描述:

开卡字段中设置了基础-多选这个字段,在查询用户填写的信息时这个字段返回为空,实际上已经填了,这个问题稳定复现,以下为开卡参数和返回的参数信息

1.设置开卡字段:

{
    "card_id":"ppVGF1fsumUp0dHS9xdzE4wTpiCc",
    "optional_form":{
        "common_field_id_list":[


        ],
        "custom_field_list":[
            "基础-日期"
        ],
        "rich_field_list":[
            {
                "name":"普通-单选",
                "type":"FORM_FIELD_SELECT",
                "values":[
                    "1",
                    "11"
                ]
            },
            {
                "name":"基础-多选",
                "type":"FORM_FIELD_CHECK_BOX",
                "values":[
                    "1",
                    "12",
                    "123"
                ]
            },
            {
                "name":"基础-单选",
                "type":"FORM_FIELD_SELECT",
                "values":[
                    "1",
                    "12",
                    "123"
                ]
            }
        ]
    },
    "required_form":{
        "common_field_id_list":[
            "USER_FORM_INFO_FLAG_MOBILE",
            "USER_FORM_INFO_FLAG_NAME",
            "USER_FORM_INFO_FLAG_BIRTHDAY"
        ],
        "custom_field_list":[


        ],
        "rich_field_list":[


        ]
    }
}

2.查询开卡字段返回:

{
    "common_field_list":[
        {
            "name":"USER_FORM_INFO_FLAG_MOBILE",
            "value":"18011111111"
        },
        {
            "name":"USER_FORM_INFO_FLAG_BIRTHDAY",
            "value":"2021-04-27"
        },
        {
            "name":"USER_FORM_INFO_FLAG_NAME",
            "value":"下次一定"
        }
    ],
    "custom_field_list":[
        {
            "name":"基础-日期",
            "value":"20211111"
        },
        {
            "name":"普通-单选",
            "value":"1"
        },
        {
            "name":"基础-多选",
            "value":""
        },
        {
            "name":"基础-单选",
            "value":"12"
        }
    ]
}


3.用户填写

最后一次编辑于  2021-04-29
回答关注问题邀请回答
收藏
登录 后发表内容