上传至Heroku的API没法用,该怎么办?

发布于 6 年前作者 ping709773 次浏览最后编辑 6 年前来自 issues

如题,localhost上传到heroku之后,调试模式一切正常,小程序发布后无法使用(heroku被列为未知来源)。请问有什么办法可以解决么?国内有哪些第三方服务可以代替heroku的?

急求!多谢

const host = http://myproduct.herokuapp.com/

const page = this

wx.request({

url: `http://myproduct.herokuapp.com/api/v1/customers\`,

metohd: ‘get’,

success: function (res) {

const customers = res.data.customers;

page.globalData.customers = res.data.customers;

}

})

0 回复
暂无回复