fix
This commit is contained in:
@@ -7,10 +7,11 @@ import (
|
||||
"fusenapi/model/gmodel"
|
||||
"fusenapi/utils/auth"
|
||||
"fusenapi/utils/basic"
|
||||
"gorm.io/gorm"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
|
||||
"context"
|
||||
|
||||
"fusenapi/server/product-model/internal/svc"
|
||||
@@ -56,7 +57,7 @@ func (l *UpdateProductModelLogic) UpdateProductModel(req *types.UpdateProductMod
|
||||
tx := l.svcCtx.MysqlConn.Begin()
|
||||
lightModel := gmodel.NewFsProductModel3dLightModel(tx)
|
||||
productModel3dModel := gmodel.NewFsProductModel3dModel(tx)
|
||||
now := time.Now().Unix()
|
||||
now := time.Now().UTC().Unix()
|
||||
if req.LightData.Id > 0 { //更新
|
||||
modelLightSaveData.Id = req.LightData.Id
|
||||
err = lightModel.Update(l.ctx, req.LightData.Id, &modelLightSaveData)
|
||||
|
||||
Reference in New Issue
Block a user