fix:合图调整

This commit is contained in:
Hiven
2023-08-18 19:37:11 +08:00
parent eb2012c5d1
commit 1b5e9623a0
2 changed files with 5 additions and 3 deletions

View File

@@ -5,13 +5,12 @@ import (
"crypto/sha256"
"encoding/json"
"fmt"
"reflect"
"sort"
)
func JsonHashKey(v interface{}) string {
if reflect.TypeOf(v).Kind() == reflect.String {
if _, ok := v.(string); ok {
var obj interface{}
err := json.Unmarshal([]byte(v.(string)), &obj)
if err == nil {