- remove globals.ReallyReplyComment

This commit is contained in:
gazebo
2019-09-02 16:53:22 +08:00
parent e4f1812337
commit 7ca4429e43
4 changed files with 4 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ var (
VendorIDELM: "Elm",
VendorIDEBAI: "Ebai",
VendorIDWSC: "Wsc",
VendorIDJX: "Jx",
VendorIDDada: "Dada",
VendorIDMTPS: "Mtps",
@@ -86,6 +87,7 @@ var (
VendorIDELM: "饿了么",
VendorIDEBAI: "饿百新零售",
VendorIDWSC: "微盟微商城",
VendorIDJX: "京西自营",
VendorIDDada: "达达众包",
VendorIDMTPS: "美团配送",

View File

@@ -96,7 +96,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
func (c *PurchaseHandler) ReplyOrderComment(ctx *jxcontext.Context, orderComment *model.OrderComment, replyComment string) (err error) {
if orderComment.VendorStoreID != "" && orderComment.UserCommentID != "" {
if globals.ReallyReplyComment {
if globals.EnableEbaiStoreWrite {
err = api.EbaiAPI.OrderRatesReply("", utils.Str2Int64(orderComment.VendorStoreID), orderComment.UserCommentID, replyComment)
}
}

View File

@@ -42,7 +42,7 @@ func (c *PurchaseHandler) onOrderComment2(msg *jdapi.CallbackOrderMsg) (err erro
}
func (c *PurchaseHandler) ReplyOrderComment(ctx *jxcontext.Context, orderComment *model.OrderComment, replyComment string) (err error) {
if globals.ReallyReplyComment {
if globals.EnableJdStoreWrite {
err = getAPI("").OrgReplyComment(utils.Str2Int64(orderComment.VendorOrderID), orderComment.VendorStoreID, replyComment, ctx.GetUserName())
}
return err

View File

@@ -17,7 +17,6 @@ const (
var (
ReallyCallPlatformAPI bool
ReallySendWeixinMsg bool
ReallyReplyComment bool
SugarLogger *zap.SugaredLogger
@@ -62,7 +61,6 @@ func Init() {
SugarLogger.Infof("globals RunMode=%s", beego.BConfig.RunMode)
ReallyCallPlatformAPI = (beego.BConfig.RunMode != "dev" && beego.BConfig.RunMode != "test")
ReallySendWeixinMsg = ReallyCallPlatformAPI && IsProductEnv()
ReallyReplyComment = ReallyCallPlatformAPI && IsProductEnv()
AliKey = beego.AppConfig.DefaultString("aliKey", "")
AliSecret = beego.AppConfig.DefaultString("aliSecret", "")