做微信小程序留言,请求禁止提交,请检查提交地址是否有误 迅睿框架 更新 2021-11-17 17:27:29 前端 做微信小程序留言,请求方式method 为post的时候,success里面打印提示msg: "禁止提交,请检查提交地址是否有误" 帮忙看下怎么回事呢 谢谢插件版权:官方插件插件名称:API接口
需要是表单的地址
uni.request({ url: "https://xcxvote.gynfj1.com/index.php?v=1&appid=1&appsecret=PHPCMF40F20E5584384&s=form&c=liuyan&m=post&is_ajax=1", data: { "data[title]": that.formName, "data[gender]": that.is_gender, "data[author]": that.formTel, }, header: { 'Content-Type': 'application/x-www-form-urlencoded', }, success:function(pp){ console.log(44, pp) } })可以了,以下格式 一个都不能错了 🙄 感谢你的帮助
uni.request({ url: "xxx/index.php?v=1&appid=1&appsecret=xxx&s=form&c=liuyan&m=post", method: 'post', data: { "data[title]": that.formName, "data[gender]": that.is_gender, "data[author]": that.formTel, }, header: { 'Content-Type': 'application/x-www-form-urlencoded', }, success:function(pp){ console.log(44, pp) } })