mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
23 lines
399 B
Go
23 lines
399 B
Go
package models
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/TeaOSLab/EdgeAPI/internal/remotelogs"
|
|
)
|
|
|
|
// DecodeCodes 解析代号
|
|
func (this *FormalClientBrowser) DecodeCodes() []string {
|
|
if IsNull(this.Codes) {
|
|
return nil
|
|
}
|
|
|
|
var result = []string{}
|
|
err := json.Unmarshal(this.Codes, &result)
|
|
if err != nil {
|
|
remotelogs.Error("FormalClientBrowser.DecodeCodes", err.Error())
|
|
}
|
|
|
|
return result
|
|
}
|