mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
fix panic
This commit is contained in:
parent
954fa879dc
commit
b069056bda
@ -34,7 +34,7 @@ type Channel struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (channel *Channel) GetOtherInfo() map[string]interface{} {
|
func (channel *Channel) GetOtherInfo() map[string]interface{} {
|
||||||
var otherInfo map[string]interface{}
|
otherInfo := make(map[string]interface{})
|
||||||
if channel.OtherInfo != "" {
|
if channel.OtherInfo != "" {
|
||||||
err := json.Unmarshal([]byte(channel.OtherInfo), &otherInfo)
|
err := json.Unmarshal([]byte(channel.OtherInfo), &otherInfo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user