小程序上线后运行出现问题,无法请求后端接口?

小程序 文章 2020-09-01 14:21 2641 0 全屏看文

AI助手支持GPT4.0

小程序上线后运行出现问题,无法请求后端接口?After the applet is online, there is a problem with the operation, and the back-end interface cannot be requested?

小程序上线后运行出现问题,无法请求后端接口?

有可能是我配置的问题,但是想找个人指点一下。。

现象:

我的代码中出现了这一段,这是一段登录的简单代码,在上线的程序中,点击登录后就一直showLoding了,一直无法进入post,后端也没看到post请求,应该是前端微信这儿出现问题了,我用别人的微信使用上线的程序也同样一直showLoading卡住。

在我自己发布之前的真机调试、电脑调试都没有问题。

疑问:

微信开发者工具上的详情-》项目配置-》域名系列的我都没有配置,不晓得这个会不会有影响。

It may be my configuration problem, but I want to find someone to give me some advice.. Phenomenon: this section appears in my code. This is a simple login code. In the online program, after clicking login, it has been showloding, and has been unable to enter the post. The back end has not seen the post request. It should be the front-end wechat that has a problem. I use other people's wechat to use the online program has also been showloading stuck. In my own release before the real machine debugging, computer debugging are no problem. Question: I haven't configured the details of wechat developer tool - "project configuration" - domain name series. I don't know if this will affect.

回答:

方超:

用别人的微信,是体验版吗,如果没有配置访问域名,需要打开调试模式

Salieri:没,只是单纯的不知道要配置而已。。谢谢,我试试
A德佑-黄勇¹³³³³⁰⁶⁵³⁸¹:

没有配置合法域名,没有后端登录接口,当然就一直显示showLoading了,后端也不会有请求。你在电脑调试时候能登录?

Salieri:谢谢,我试试
A德佑-黄勇¹³³³³⁰⁶⁵³⁸¹:不客气,只要是第三方服务器,都需要配置合法域名。  看见下面那个有用按钮了吗?我建议你点一下。(* ̄︶ ̄)
stop eating:

没配置合法域名啊 你全都是未设置

Salieri:谢谢,我试试

-EOF-

AI助手支持GPT4.0