feat: product test com
This commit is contained in:
@@ -96,7 +96,7 @@ func (l *EditBaseLogic) EditBase(in *product.EditBaseReq) (*product.Response, er
|
||||
IsIndex: uint8(req.IsIndex),
|
||||
IndexImage: req.IndexImage,
|
||||
Label: req.Label,
|
||||
PublishTime: publishTime,
|
||||
PublishTime: publishTime.Format(time.DateTime),
|
||||
AdminName: adminName,
|
||||
AdminId: adminId,
|
||||
IsBuy: uint8(req.IsBuy),
|
||||
|
||||
@@ -99,7 +99,7 @@ func (l *VerifyStatusLogic) verifyStatus(expectStatus uint8, in *product.VerifyS
|
||||
err = l.svcCtx.DB.WithContext(l.ctx).Transaction(func(tx *gorm.DB) error {
|
||||
vm := model.VerifyModel{}.Init().WithTX(tx)
|
||||
pm := model.ProductModel{}.Init().WithTX(tx)
|
||||
now := time.Now()
|
||||
now := time.Now().Format(time.DateTime)
|
||||
|
||||
if expectStatus == dao.VerifyStatusChecking {
|
||||
if _, err := vm.Edit(w, &dao.VerifyFirstUpdate{
|
||||
|
||||
Reference in New Issue
Block a user