更新二维码显示

This commit is contained in:
RainSun 2021-01-17 22:33:00 +08:00
parent 57c88a9473
commit 0e86bb913e
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
var data = [{ "_id" : {"$oid": "5de3cc411e83c77332ded8a5"}, "username" : "小例子~欢迎测试~", "node" : "绝对不能删除这个东西", "wxcode" : "wxp://f2f0WvGwL7XfIB-3LU3S6bzSF9yZpiZCeMKP", "alcode" : "https://qr.alipay.com/fkx096505kpwu1n71l6pw4a", "qqcode" : "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&f=wallet&a=1&ac=CAEQkpzIoQQY14z17gU%3D_xxx_sign&u=1144131090&n=Rain+Sun", "openId" : "otxHM4icvFkfMcaqxTH1zSNKhKVs", "timeout" : "1606314047962", "create_time" : 1575210049 }]
var data = { "username" : "小例子~欢迎测试~", "node" : "绝对不能删除这个东西", "wxcode" : "wxp://f2f0WvGwL7XfIB-3LU3S6bzSF9yZpiZCeMKP", "alcode" : "https://qr.alipay.com/fkx096505kpwu1n71l6pw4a", "qqcode" : "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&f=wallet&a=1&ac=CAEQkpzIoQQY14z17gU%3D_xxx_sign&u=1144131090&n=Rain+Sun", "openId" : "otxHM4icvFkfMcaqxTH1zSNKhKVs", "create_time" : 1575210049 }

@ -55,7 +55,7 @@
qqpay: "",
wxpay: "",
alpay: "",
id: "",
// id: "",
qrcodeApi: "https://qr.lacus.site/generate?text="
}
@ -69,7 +69,7 @@
//初始化
function init() {
// data = JSON.parse(data);
data = data[0]
// data = data[0]
// 控制台输出信息
try {
console.log('%cRainSun Copyright \xa9 2018-%s','font-size:12px;color:#999999;', (new Date).getFullYear());
@ -79,7 +79,7 @@
}
// 换背景
ele('bg').src = bgs[Math.floor(Math.random() * bgs.length)]
setting.id = data._id.$oid
// setting.id = data._id.$oid
setting.alpay = data.alcode;
setting.qqpay = data.qqcode;
setting.wxpay = data.wxcode;