Created
August 15, 2019 09:16
-
-
Save juzhiyuan/debba9448c65d8ffac108e4739006573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generateQR = data => new Promise((resolve, reject) => { | |
wx.downloadFile({ | |
url: `https://XXXX/wxacodeunlimit?data=${encodeURI(JSON.stringify(data))}`, | |
success: res => { | |
console.log(res) | |
resolve(res.tempFilePath) | |
}, | |
fail: () => { | |
reject() | |
}, | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment