What is the difference between the
qcloud.login method
and wx.login in the demo of the mini program solution
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.