fix:上传logo--debug模式
This commit is contained in:
parent
f5779ba6c1
commit
b1673687a8
|
@ -156,8 +156,8 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
|||
if logoResourceId == "" {
|
||||
return nil, errors.New("invalid logo url")
|
||||
}
|
||||
userMaterialModel := gmodel.NewFsResourceModel(l.MysqlConn)
|
||||
resLogoInfo, err := userMaterialModel.FindOneById(ctx, logoResourceId)
|
||||
userMaterialModel := gmodel.NewFsUserMaterialModel(l.MysqlConn.Debug())
|
||||
resLogoInfo, err := userMaterialModel.FindOneByLogoResourceId(ctx, logoResourceId)
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
return nil, fmt.Errorf("logo find fial logoResourceId: %v, err: %v", logoResourceId, err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user