Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
fix: Fixed loss of login status of QQ account
Browse files Browse the repository at this point in the history
  • Loading branch information
PBK-B committed Sep 3, 2021
1 parent bd55414 commit af0ff59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions models/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ func GetConfigsDataById(id int) (data map[string]interface{}, err error) {
dataStr := c.Data
var data_obj interface{}
json.Unmarshal([]byte(dataStr), &data_obj)
data = data_obj.(map[string]interface{})
if data_obj != nil {
data = data_obj.(map[string]interface{})
}
return
}

Expand All @@ -129,7 +131,9 @@ func GetConfigsDataByName(name string) (data map[string]interface{}, err error)
dataStr := c.Data
var data_obj interface{}
json.Unmarshal([]byte(dataStr), &data_obj)
data = data_obj.(map[string]interface{})
if data_obj != nil {
data = data_obj.(map[string]interface{})
}
return
}

Expand Down

0 comments on commit af0ff59

Please sign in to comment.