From 6d8a74e6efc7de18f9bc8c2966909ba491f801ee Mon Sep 17 00:00:00 2001 From: Rrrrrrray <28804884+Rrrrrrray@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:21:19 +0800 Subject: [PATCH] =?UTF-8?q?#=E7=BB=91=E5=AE=9Auid=E9=80=82=E9=85=8D3*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/apps/user.js | 2 +- plugins/genshin/model/gsCfg.js | 4 ++-- plugins/genshin/model/user.js | 2 +- plugins/genshin/resources/StarRail/html/mysNews/mysNews.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/genshin/apps/user.js b/plugins/genshin/apps/user.js index 279708b..c94f52d 100644 --- a/plugins/genshin/apps/user.js +++ b/plugins/genshin/apps/user.js @@ -95,7 +95,7 @@ export class user extends plugin { /** 绑定uid */ saveUid () { if (!this.e.msg) return - let uid = this.e.msg.match(/[1|2|5-9][0-9]{8}/g) + let uid = this.e.msg.match(/[1|2|3|5-9][0-9]{8}/g) if (!uid) { this.reply('uid输入错误', false, { at: true }) return diff --git a/plugins/genshin/model/gsCfg.js b/plugins/genshin/model/gsCfg.js index 34e314e..67d1d8c 100644 --- a/plugins/genshin/model/gsCfg.js +++ b/plugins/genshin/model/gsCfg.js @@ -179,7 +179,7 @@ class GsCfg { * @return uid 游戏uid */ getRole (msg, filterMsg = '', isSr = false) { - let alias = msg.replace(/#|老婆|老公|[1|2|5-9][0-9]{8}/g, '').trim() + let alias = msg.replace(/#|老婆|老公|[1|2|3|5-9][0-9]{8}/g, '').trim() if (filterMsg) { alias = alias.replace(new RegExp(filterMsg, 'g'), '').trim() } @@ -260,7 +260,7 @@ class GsCfg { // 仅供内部调用 _getRole (msg, filterMsg = '', isSr = false) { - let alias = msg.replace(/#|老婆|老公|[1|2|5-9][0-9]{8}/g, '').trim() + let alias = msg.replace(/#|老婆|老公|[1|2|3|5-9][0-9]{8}/g, '').trim() if (filterMsg) { alias = alias.replace(new RegExp(filterMsg, 'g'), '').trim() } diff --git a/plugins/genshin/model/user.js b/plugins/genshin/model/user.js index f0f420e..859f5c3 100644 --- a/plugins/genshin/model/user.js +++ b/plugins/genshin/model/user.js @@ -197,7 +197,7 @@ export default class User extends base { /** 绑定uid,若有ck的话优先使用ck-uid */ async bingUid () { - let uid = this.e.msg.match(/[1|2|5-9][0-9]{8}/g) + let uid = this.e.msg.match(/[1|2|3|5-9][0-9]{8}/g) if (!uid) return uid = uid[0] let user = await this.user() diff --git a/plugins/genshin/resources/StarRail/html/mysNews/mysNews.html b/plugins/genshin/resources/StarRail/html/mysNews/mysNews.html index 22e3827..6e61134 100644 --- a/plugins/genshin/resources/StarRail/html/mysNews/mysNews.html +++ b/plugins/genshin/resources/StarRail/html/mysNews/mysNews.html @@ -4,7 +4,7 @@ - + @@ -123,7 +123,7 @@ - +