WeChat applet parameters QR code generation to share pictures in the circle of friends

foreword

At present, mini programs cannot be shared with WeChat Moments, but Moments are a very important communication channel, so we have to find a way to make use of this resource

WeChat applet supports entering a applet homepage or a specific page (parameter QR code) in the applet by scanning/long pressing to identify the QR code or applet code picture. Share the code to the circle of friends.

Step 1: Get the parameter QR code

1. Get appid and appsecret

2. Save access_token

3. Save access_token

4. Get parameter QR code

Step 2: The applet canvas generates a parameter QR code picture

1. Create the canvas

2. Select a basemap

3.draw()

4. Save the canvas path

5. Generate a preview

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325883220&siteId=291194637