删除日志
This commit is contained in:
@@ -80,7 +80,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
if err == nil || dao.IsNoRowsError(err) {
|
if err == nil || dao.IsNoRowsError(err) {
|
||||||
isNewComment := false
|
isNewComment := false
|
||||||
if dao.IsNoRowsError(err) {
|
if dao.IsNoRowsError(err) {
|
||||||
globals.SugarLogger.Debugf("========dao.IsNoRowsError= :%s", utils.Format4Output(orderComment, false))
|
|
||||||
err = nil
|
err = nil
|
||||||
isNewComment = true
|
isNewComment = true
|
||||||
if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < time.Duration(orderComment.ModifyDuration)*time.Hour {
|
if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < time.Duration(orderComment.ModifyDuration)*time.Hour {
|
||||||
@@ -158,8 +157,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("========comment2= :%s", utils.Format4Output(comment2, false))
|
|
||||||
globals.SugarLogger.Debugf("========isNewComment= :%s", utils.Format4Output(isNewComment, false))
|
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if isNewComment {
|
if isNewComment {
|
||||||
|
|||||||
@@ -1688,7 +1688,6 @@ func DeleteStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
|||||||
if err = dao.GetEntity(db, storeMap, model.FieldStoreID, model.FieldVendorID, model.FieldDeletedAt); err == nil {
|
if err = dao.GetEntity(db, storeMap, model.FieldStoreID, model.FieldVendorID, model.FieldDeletedAt); err == nil {
|
||||||
if handler := partner.GetPurchasePlatformFromVendorID(vendorID); handler != nil {
|
if handler := partner.GetPurchasePlatformFromVendorID(vendorID); handler != nil {
|
||||||
handler.UpdateStoreCustomID(ctx, storeMap.VendorOrgCode, storeMap.VendorStoreID, utils.Str2Int64WithDefault(storeMap.VendorStoreID, 0))
|
handler.UpdateStoreCustomID(ctx, storeMap.VendorOrgCode, storeMap.VendorStoreID, utils.Str2Int64WithDefault(storeMap.VendorStoreID, 0))
|
||||||
globals.SugarLogger.Debugf("DeleteStoreVendorMap storeMap.VendorStoreID ====%d", storeMap.VendorStoreID)
|
|
||||||
}
|
}
|
||||||
storeMap.FakeOpenStart = 0
|
storeMap.FakeOpenStart = 0
|
||||||
storeMap.FakeOpenStop = 0
|
storeMap.FakeOpenStop = 0
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printT
|
|||||||
} else {
|
} else {
|
||||||
content = c.getCancelOrRefundOrderContentBig(order, printType, storeDetail)
|
content = c.getCancelOrRefundOrderContentBig(order, printType, storeDetail)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("PrintCancelOrRefundOrder content=====%s", content)
|
|
||||||
if content == "" {
|
if content == "" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ func (c *PurchaseHandler) StartRefreshComment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *PurchaseHandler) refreshCommentOnce() {
|
func (c *PurchaseHandler) refreshCommentOnce() {
|
||||||
globals.SugarLogger.Debugf("refreshCommentOnce = %s", utils.Format4Output(time.Now(), false))
|
|
||||||
c.RefreshComment(time.Now().Add(-RefreshCommentTime), time.Now())
|
c.RefreshComment(time.Now().Add(-RefreshCommentTime), time.Now())
|
||||||
utils.AfterFuncWithRecover(RefreshCommentTimeInterval, func() {
|
utils.AfterFuncWithRecover(RefreshCommentTimeInterval, func() {
|
||||||
c.refreshCommentOnce()
|
c.refreshCommentOnce()
|
||||||
@@ -75,10 +74,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
IsReplied: int8(mtwmComment.ReplyStatus),
|
IsReplied: int8(mtwmComment.ReplyStatus),
|
||||||
StoreID: storeDetail.ID,
|
StoreID: storeDetail.ID,
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
if orderComment.IsReplied == 0 {
|
if orderComment.IsReplied == 0 {
|
||||||
orderComment.Content = mtwmComment.CommentContent
|
orderComment.Content = mtwmComment.CommentContent
|
||||||
orderComment.CommentCreatedAt = createdTime
|
orderComment.CommentCreatedAt = createdTime
|
||||||
} else {
|
|
||||||
orderComment.Content = mtwmComment.AddComment
|
orderComment.Content = mtwmComment.AddComment
|
||||||
if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil {
|
if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil {
|
||||||
orderComment.CommentCreatedAt = updatedTime
|
orderComment.CommentCreatedAt = updatedTime
|
||||||
@@ -91,8 +90,6 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
|
|||||||
}, storeIDs)
|
}, storeIDs)
|
||||||
task.Run()
|
task.Run()
|
||||||
resultList, err2 := task.GetResult(0)
|
resultList, err2 := task.GetResult(0)
|
||||||
globals.SugarLogger.Debugf("resultList := %s", utils.Format4Output(resultList, false))
|
|
||||||
globals.SugarLogger.Debugf("err2 := %s", utils.Format4Output(err2, false))
|
|
||||||
if err = err2; err != nil {
|
if err = err2; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -660,7 +660,6 @@ func UpdateFreeShipTemplate(vendorOrgCode string, storeID int, shipFee int64) er
|
|||||||
OverAmount: shipFee * 100,
|
OverAmount: shipFee * 100,
|
||||||
}},
|
}},
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("ykljkfjapojf param====%s", utils.Format4Output(param, false))
|
|
||||||
if _, err := a.FreightTemplateUpdate(param); err != nil {
|
if _, err := a.FreightTemplateUpdate(param); err != nil {
|
||||||
return errors.New("更新包邮运费模板失败")
|
return errors.New("更新包邮运费模板失败")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner"
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/putils"
|
"git.rosy.net.cn/jx-callback/business/partner/putils"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"git.rosy.net.cn/jx-callback/globals/api/apimanager"
|
"git.rosy.net.cn/jx-callback/globals/api/apimanager"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -858,7 +857,6 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao
|
|||||||
}
|
}
|
||||||
freightId = temp.TemplateId
|
freightId = temp.TemplateId
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("freightId =last %d", freightId)
|
|
||||||
return freightId, nil
|
return freightId, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user