2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

fix:修正cookie问题

This commit is contained in:
Ctrlcvs 2023-03-10 08:18:16 +08:00
parent 2470ce6656
commit dfe13c1a0d

View File

@ -162,10 +162,14 @@ export default class mysTopLogin {
// return true; // return true;
// } // }
let goods = (await this.goodsList())[msg[1]] let goods = (await this.goodsList())[msg[1]]
// let ckData=this.e.user.ckData if (!this.e.cookie) {
this.e.reply('请先 #绑定cookie')
return true;
}
let ckData =await utils.getCookieMap(this.e.cookie)
let device_id = utils.randomString(4) let device_id = utils.randomString(4)
let order = { let order = {
"account": "196576671", "account":ckData?.get('ltuid')||ckData.get('account_id'),
"region": utils.getServer(this.e.uid), "region": utils.getServer(this.e.uid),
"uid": this.e.uid, "uid": this.e.uid,
"delivery_url": "", "delivery_url": "",