From a2f76364ae17dc76a64d5cf20961c65b13d14c8b Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Fri, 10 Mar 2023 08:30:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mhyTopUpLogin.js | 2 +- model/mhyTopUpLogin.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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')