Home >Backend Development >PHP Tutorial >javascript - Demo of small program solution

javascript - Demo of small program solution

WBOY
WBOYOriginal
2016-12-01 00:25:50932browse

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.

Statement:
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