mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修正正则
This commit is contained in:
parent
dfe13c1a0d
commit
a2f76364ae
@ -22,7 +22,7 @@ export const rule = {
|
||||
},
|
||||
payOrder: {
|
||||
/** 命令正则匹配 */
|
||||
reg: '^#?((原神(微信)?充值(微信)?(.*))|(#?商品列表)|(#?订单查询))$',
|
||||
reg: '^#?((原神(微信)?充值(微信)?(.*))|(商品列表)|(订单查询))$',
|
||||
/** 执行方法 */
|
||||
describe: '原神充值(离线)'
|
||||
}
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user