diff --git a/apps/mhyTopUpLogin.js b/apps/mhyTopUpLogin.js index f58ce5d..cf81f02 100644 --- a/apps/mhyTopUpLogin.js +++ b/apps/mhyTopUpLogin.js @@ -22,7 +22,7 @@ export const rule = { }, payOrder: { /** 命令正则匹配 */ - reg: '^#?((原神(微信)?充值(微信)?(.*))|(#?商品列表)|(#?订单查询))$', + reg: '^#?((原神(微信)?充值(微信)?(.*))|(商品列表)|(订单查询))$', /** 执行方法 */ describe: '原神充值(离线)' } diff --git a/model/mhyTopUpLogin.js b/model/mhyTopUpLogin.js index c521b9f..0ea75d6 100644 --- a/model/mhyTopUpLogin.js +++ b/model/mhyTopUpLogin.js @@ -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')