POST 接口地址无法解析
发布于 5 年前 作者 taoxu 16562 次浏览 来自 问答

按照 “实战讲解”课程http://****************/27168.html讲“发布信息

 

以下这段代码我调试时出现问题:

--------------------------------------------------------------------

const data = Object.assign ({}, this.staticData, {

address: this.data.address,

distinct: "yushui_t"

})

 

wx.request({

url: https://nuan.wekeji.cn/............................ ,

data: data,

method: "POST",

header: {

'content-type': 'application/x-www-form-urlencoded' 

},

success: this.handleSubmitSucc.bind(this)

})

},

 

handleSubmitSucc(res) {

console.log(res.data)

}

--------------------------------------------------------------------------------------------------------------------------------

调试反馈

appservice?t=1542163221788:1117

 POST

https://nuan.wekeji.cn/

net::ERR_NAME_NOT_RESOLVED

(接口地址无法解析)

 

用老师讲课时给的地址是:

 https://nuanwan.wekeji.cn/…

调试反馈:

 https://nuanwan.wekeji.cn 不在以下 request 合法域名列表中,请参考文

https://mp.weixin.qq.com/....................................

appservice?t=1542164505236:1117

(index)

0

0

https://nuan.wekeji.cn

 

 我的这段代码,ur1 应如何填写?

3 回复

谢谢二位解答。

我将认真仔细研究学习!

你的域名没有登记,如果只是在开发工具里面测试,你可以取消域名校验.如果想发布就在后台里登记一下域名吧

回到顶部