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