简要描述:

请求URL:

POST: plugin.diyform.api.diy-form.getSingleFormData

参数:

参数名 是否必须 类型 说明
i int 店铺ID
form_id int 表单ID
form_data_id int 表单数据ID

返回示例:

正确时返回:

{
    result: 1, 
    msg: "", 
    data: {
        id: 2, 
        uniacid: 6, 
        title: "测试一下", 
        fields: {
            diyxingming: {
                data_type: "0", 
                tp_name: "姓名", 
                tp_must: 0, 
                tp_is_default: "2", 
                tp_default: "", 
                placeholder: ""
            }, 
            diyhaoma: {
                data_type: "0", 
                tp_name: "号码", 
                tp_must: 0, 
                tp_is_default: "3", 
                tp_default: "", 
                placeholder: ""
            }, 
            diytupian: {
                data_type: "5", 
                tp_name: "图片", 
                tp_must: 0, 
                tp_max: 1
            }
        }, 
        status: 1, 
        success: "0", 
        submit_number: 0, 
        created_at: null, 
        updated_at: "2019-11-27 17:49:38", 
        deleted_at: null, 
        thumb: "images/2/2019/11/rpq9zPcQ916OtBq765Q56755Y92526.jpg", 
        description: "", 
        share_description: "", 
        form_data: {
            diyxingming: "橘子", 
            diyhaoma: "18988930800", 
            diytupian: [
                "image/55fbcd389a18b58fb146795735afce5c.png"
            ]
        }, 
        form_type: {
            diyxingming: {
                data_type: "0", 
                tp_name: "姓名", 
                tp_must: 0, 
                tp_is_default: "2", 
                tp_default: "", 
                placeholder: ""
            }, 
            diyhaoma: {
                data_type: "0", 
                tp_name: "号码", 
                tp_must: 0, 
                tp_is_default: "3", 
                tp_default: "", 
                placeholder: ""
            }, 
            diytupian: {
                data_type: "5", 
                tp_name: "图片", 
                tp_must: 0, 
                tp_max: 1
            }
        }
    }
}

错误时返回:

{
    "result":0,
    "msg":"未检测到数据!",
    "data": {
    }
}

返回参数说明:

参数名 类型 说明

备注:

  • 更多返回错误代码请看首页的错误代码描述