From 20f693c0dfb35adee7be91de68da82386c2b7ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=89=E6=98=9F=E9=9B=AA?= <2658756105@qq.com> Date: Wed, 31 May 2023 07:01:06 +0000 Subject: [PATCH] =?UTF-8?q?#=E5=8E=9F=E7=9F=B3=E7=BB=9F=E8=AE=A1=20fix?= =?UTF-8?q?=EF=BC=9AError:=20Illegal=20argument=20undefined=20=20at=20at?= =?UTF-8?q?=20module.exports(md5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杉星雪 <2658756105@qq.com> --- plugins/genshin/model/mys/mysApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/model/mys/mysApi.js b/plugins/genshin/model/mys/mysApi.js index c04a322..16ad81c 100644 --- a/plugins/genshin/model/mys/mysApi.js +++ b/plugins/genshin/model/mys/mysApi.js @@ -28,7 +28,7 @@ export default class MysApi { /* eslint-disable quotes */ get device () { - if (!this._device) this._device = `Yz-${md5(this.uid).substring(0, 5)}` + if (!this._device) this._device = `Yz-${md5(`${this.uid}`).substring(0, 5)}` return this._device }