uni-app WeChat applet calls Scan to identify the applet code (Chrysanthemum code, Sun code)

In the return value, path is the path corresponding to the applet code.

The scanned code must be generated by the AppID and secret of the mini program. You can also generate it for testing by filling in the mini program path in the mini program background-->tools-->

uni.scanCode({
	success(res) {
		console.log(res)
	}
})

Guess you like

Origin blog.csdn.net/weixin_44546357/article/details/131324817