
微信小程序开启NFC跳转先把微信NFC调用开启大体流程1.先得到自己的appid、secret、token2.得到model_id值这个值是申请NFC成功以后会有3.使用postmax也好或是别的后端也好 前端也好就是一个 git 一个post请求 得到我自己看的教程https://developers.weixin.qq.com/miniprogram/dev/server/API/mp-access-token/api_getaccesstoken.htmlhttps://developers.weixin.qq.com/miniprogram/dev/server/API/qrcode-link/url-scheme/api_generatenfcscheme.html传入appid和secret 获取tokenxxxxxxxxxhttps://api.weixin.qq.com/cgi-bin/token?appidxxxxxxxxxsecretxxxxxxxxxgrant_typeclient_credential得到{“access_token”: “xxxxxxxxx”,“expires_in”: 7200}传入得到的access_tokenhttps://api.weixin.qq.com/wxa/generatenfcscheme?access_tokenxxxxxxxxx传入json数据{“jump_wxa”: {“path”: “/pages/products/products”,“query”: “playmode_id36”},“sn”: “”,“model_id”: “xxxxxxxxx”}得到了{“errcode”: 0,“errmsg”: “ok”,“openlink”: “xxxxxxxxx”}后面小程序中怎么做可以询问AI我是直接拿到了playmode_id36 在小程序中又有别的程序在获取到这个id以后获取数据这里只是跳转到这个小程序写入NFC流程个别手机没有开启NFC全局调用检查一下 不是只有公交、电梯、门禁使用安卓手机下载NFC Tools PRO软件写入 自己去下载一个