javascript - Demo of small program solution

WBOY
Release: 2023-03-01 18:38:01
Original
898 people have browsed it

What is the difference between the
qcloud.login method
and wx.login in the demo of the mini program solution

Reply content:

What is the difference between the
qcloud.login method
and wx.login in the demo of the mini program solution

The wx.login method only obtains the [code] inside the mini program and then there is nothing more to do (because then you have to write the session logic on your own server).
qcloud.login implements your server session logic, and it also needs to obtain [code] before requesting.
qcloud.login solves the problem that small programs cannot use sessions for session management like developing web applications.

Is this a method encapsulated by others? I have never seen such a call.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template