


javascript - 【微信网页开发】网页授权获取用户基本信息:进入登录页面的功能按钮放在二级菜单可以成功登录,改为一级菜单则不行
首先:appid我都是用服务号的,因为订阅号不能授权获取用户基本信息的。
假设
:我有3个需要登录的页面,这些页面的入口按钮需要分别放到订阅号
聊天窗口下面的3个功能按钮上时。
情况1:
当把这3个按钮的任意一个放到二级按钮里,其他的放到一级菜单,则均能登录成功情况2:
但是把3个都放到一级菜单,则均报错:redirect_uri 参数错误
(登录成功和失败,redirect_uri 参数都是一样的,所以觉得这个参数错误是不太可能的。)
请问这是啥子问题啊,我都要被老板骂死了,说只有3个按钮,居然还要放到二级菜单里去这种低级错误我也犯...
回复内容:
首先:appid我都是用服务号的,因为订阅号不能授权获取用户基本信息的。
假设
:我有3个需要登录的页面,这些页面的入口按钮需要分别放到订阅号
聊天窗口下面的3个功能按钮上时。
情况1:
当把这3个按钮的任意一个放到二级按钮里,其他的放到一级菜单,则均能登录成功情况2:
但是把3个都放到一级菜单,则均报错:redirect_uri 参数错误
(登录成功和失败,redirect_uri 参数都是一样的,所以觉得这个参数错误是不太可能的。)
请问这是啥子问题啊,我都要被老板骂死了,说只有3个按钮,居然还要放到二级菜单里去这种低级错误我也犯...
问题问了很久没人来看,重新改一下问题,然后再顶一下看看
额,虽然有人进来看问题了我很高兴,但是踩的话到底是什么原因,能不能给个说法...问题问得不好?

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

The best cryptocurrency trading and analysis platforms include: 1. OKX: the world's number one in trading volume, supports multiple transactions, provides AI market analysis and on-chain data monitoring. 2. Binance: The world's largest exchange, providing in-depth market conditions and new currency first-time offerings. 3. Sesame Open Door: Known for spot trading and OTC channels, it provides automated trading strategies. 4. CoinMarketCap: an authoritative market data platform, covering 20,000 currencies. 5. CoinGecko: Known for community sentiment analysis, it provides DeFi and NFT trend monitoring. 6. Non-small account: a domestic market platform, providing analysis of linkage between A-shares and currency markets. 7. On-chain Finance: Focus on blockchain news and update in-depth reports every day. 8. Golden Finance: 24 small

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

The official Gate.io APP can be downloaded in the following ways: 1. Visit the official website gate.io to download; 2. Search "Gate.io" on the App Store or Google Play to download. Be sure to download it through the official channel to ensure safety.

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

HTML5 brings five key improvements: 1. Semantic tags improve code clarity and SEO effects; 2. Multimedia support simplifies video and audio embedding; 3. Form enhancement simplifies verification; 4. Offline and local storage improves user experience; 5. Canvas and graphics functions enhance the visualization of web pages.

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.
