mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
update: /verify/getQr 补充二维码dataurl返回数据
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const QRCode = require('qrcode')
|
||||
module.exports = async (query, request) => {
|
||||
const data = {
|
||||
verifyConfigId: query.vid,
|
||||
@@ -36,6 +37,7 @@ module.exports = async (query, request) => {
|
||||
data: {
|
||||
qrCode: res.body.data.qrCode,
|
||||
qrurl: result,
|
||||
qrimg: await QRCode.toDataURL(result),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user