Wechat Mini Program Cloud Development Practice - Answering Points Contest Mini Program
Interface Joint Debugging: Entering the Homepage, Automatic Authentication and Silent Login
basic introduction
WeChat cloud development provides multiple basic capabilities, including database, storage, and cloud functions. Among them, a cloud function is a piece of code that runs on the cloud. It does not need to manage the server. It can be written in the development tool, uploaded and deployed with one click to run the back-end code.
The Mini Program provides an API dedicated to calling cloud functions. Developers can use the getWXContext method provided by wx-server-sdk to obtain the context (appid, openid, etc.) of each call in the cloud function.
technical points
1、wx-server-sdk
To use wx-server-sdk in cloud functions, you need to install wx-server-sdk dependencies in the corresponding cloud function directory&