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

修正正则

This commit is contained in:
Ctrlcvs 2023-03-10 08:30:38 +08:00
parent dfe13c1a0d
commit a2f76364ae
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ export const rule = {
},
payOrder: {
/** 命令正则匹配 */
reg: '^#?((原神(微信)?充值(微信)?(.*))|(#?商品列表)|(#?订单查询))$',
reg: '^#?((原神(微信)?充值(微信)?(.*))|(商品列表)|(订单查询))$',
/** 执行方法 */
describe: '原神充值(离线)'
}

View File

@ -157,10 +157,10 @@ export default class mysTopLogin {
return true;
}
let iswx = msg[0].includes('微信') ? 'weixin' : 'alipay'
// if (msg[2].length != 9) {
// this.e.reply('uid格式不对!')
// return true;
// }
if (msg[1].length != 1) {
his.e.reply(`格式参考:#原神充值 6(商品ID)\n 可通过【#商品列表】获取可操作商品`)
return true;
}
let goods = (await this.goodsList())[msg[1]]
if (!this.e.cookie) {
this.e.reply('请先 #绑定cookie')