const requestTask = wx.request({
url: https://dd192.net/api/get_userinfo.php,
data: params,
header: {
'content-type': 'application/json'
},success: function (res) {
console.log(res.data)
}
})
success 方法打印的却是
VM770 asdebug.js:1 GET https://dd192.net/api/4g.php 404 (Not Found)
请问这个什么原因导致的?
猜不出来,你这个地址是内网的吗
问题主要是
我请求https:xxxx.net/api/xxx.php
不论后缀是什么都会报
https:xxxx.net/api/4g.php 404 not found
我浏览器访问是不会报404的, 可能是参数错了