返回值
javascript
{qrCode: 'expiredAt=1693821779265&token=449d599830b8486a9c7b15e0bc3f036c', listenUri: 'wss://ws.abcdtest.link/?token0=f63c64883ed7ea338e100a28946aba654165ad0f'}
expiredAt=1693821779265&token=449d599830b8486a9c7b15e0bc3f036c
需要处理上面的字符串
javascript
const qrCode = data.qrCode;
const params = new URLSearchParams(qrCode);
const expiredAt = params.get('expiredAt');
console.log(expiredAt); // 输出:1693821037721
ShowQRMaskTime= (expiredAt - Date.now() - 12 * 1000) / 1000; //失效时间