fix:修改用户素材表时间结构

This commit is contained in:
momo
2023-09-01 10:27:28 +08:00
parent 6381d258c0
commit 2d62681600
7 changed files with 23 additions and 17 deletions

View File

@@ -6,9 +6,10 @@ import (
"fusenapi/constants"
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"gorm.io/gorm"
"strings"
"gorm.io/gorm"
"context"
"fusenapi/server/render/internal/svc"
@@ -52,7 +53,7 @@ func (l *GetFaceSliceLogic) GetFaceSlice(req *types.Request, userinfo *auth.User
}
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get user material info")
}
if materialInfo.Metadata == nil || *materialInfo.Metadata == "" {
if materialInfo.Metadata == nil {
return resp.SetStatusWithMessage(basic.CodeServiceErr, "user material info`Metadata is empty")
}
var info map[string]interface{}