1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix logic.

This commit is contained in:
Mrs4s 2021-05-24 20:24:34 +08:00
parent f145000ac0
commit 0d8fb8a8a7
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -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 == "",
},
},
}