fix:hash优化
This commit is contained in:
parent
c701236f1d
commit
c62d5fd1d5
|
@ -261,7 +261,11 @@ type (
|
|||
|
||||
/* 图片裁剪 */
|
||||
func (l *defaultImageHandle) LogoStandard(ctx context.Context, in *LogoStandardReq) (*LogoStandardRes, error) {
|
||||
var resourceId string = hash.JsonHashKey(in)
|
||||
var hashKeyDataMap map[string]interface{}
|
||||
hashKeyDataB, _ := json.Marshal(in)
|
||||
json.Unmarshal(hashKeyDataB, &hashKeyDataMap)
|
||||
var resourceId string = hash.JsonHashKey(hashKeyDataMap)
|
||||
|
||||
var postMap = make(map[string]interface{}, 5)
|
||||
postMap["is_remove_bg"] = in.IsRemoveBg
|
||||
postMap["logo_file"] = in.LogoFile
|
||||
|
|
Loading…
Reference in New Issue
Block a user