mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
fix logic.
This commit is contained in:
parent
f145000ac0
commit
0d8fb8a8a7
@ -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 == "",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user