From 0d8fb8a8a76f7d4e24ef5c145a3a646d3e9bfd5c Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Mon, 24 May 2021 20:24:34 +0800 Subject: [PATCH] fix logic. --- client/model_show.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/model_show.go b/client/model_show.go index c61b6cdd..2893fa24 100644 --- a/client/model_show.go +++ b/client/model_show.go @@ -92,10 +92,6 @@ func (c *QQClient) GetModelShow(modelName string) ([]*ModelVariant, error) { } func (c *QQClient) SetModelShow(modelName string, modelShow string) error { - recover := false - if modelShow == "" { - recover = true - } req := ModelSet{ Req: ModelReq{ Req: ModelReqData{ @@ -105,7 +101,7 @@ func (c *QQClient) SetModelShow(modelName string, modelShow string) error { IMei: SystemDeviceInfo.IMEI, ShowInfo: true, ModelShow: strings.ReplaceAll(url.QueryEscape(modelShow), "+", "%20"), - RecoverDefault: recover, + RecoverDefault: modelShow == "", }, }, }