小程序做了登入页面但是被点击收藏后从收藏打开无需登入就直接使用了?

小程序 文章 2021-12-29 10:00 337 0 全屏看文

AI助手支持GPT4.0

小程序做了登入页面但是被点击收藏后从收藏打开无需登入就直接使用了?The applet made the login page, but after it was clicked on the favorite, I opened it from the favorite and used it directly without logging in?

小程序做了登入页面但是被点击收藏后从收藏打开无需登入就直接使用了?

小程序做了登入页面但是被点击收藏后从收藏打开无需登入就直接使用了?

这种问题怎么解决?

收藏打开没有登入就直接使用了


The applet has made a login page, but after being clicked on the collection, it can be opened from the collection and used directly without login? How to solve this problem? Open the collection and use it directly without login

回答:

中式小面包:

检查下登录控制的代码,可以参考:https://developers.weixin.qq.com/community/develop/article/doc/0006a20bb84fd0dcaa2dc7f725b813

八九:

逻辑理清再写吧

mysteriousM:

没登录是否能使用不是你自己业务逻辑决定的吗

dreamhunter:

app.js里面加判定也可以,未登录跳转登录页面

老张:

1、登录后的页面,每个页面都判断是否登录了。

-EOF-

AI助手支持GPT4.0