上传至Heroku的API没法用,该怎么办?
发布于 4 年前 作者 ping70 9594 次浏览 来自 官方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;

}

})

回到顶部