laravel API 接受PUT请求Content-Type:application/x-www-form-urlencoded

周通
2023-12-01

微信小程序:
wx.request({
url: ‘https://m.sybmfw.cn/api/ys_user/’ + openid,
method:‘put’,
data:that.data.formdata,
header: {
’content-type’: ‘application/x-www-form-urlencoded’//必须用该类型
},

php laravel

return t h i s − > s u c c e s s ( this->success( this>success(request->all());

 类似资料: