- 新京东到家订单事件中,顺序调用得到新订单信息与手机号(因为超过了1000个店后,只用订单号查手机号要出错)

- 在defsch中异步调用微信发消息
This commit is contained in:
gazebo
2019-03-20 16:30:48 +08:00
parent 02db9f0b4f
commit 4876b7664c
5 changed files with 36 additions and 185 deletions

View File

@@ -16,8 +16,9 @@ import (
// 饿百的评价不是一点一点出来的,而是一下把前一天的全部崩出来。。。
const (
RefreshCommentTime = 36 * time.Hour
RefreshCommentTimeInterval = 60 * time.Minute
RefreshCommentTime = 36 * time.Hour
RefreshCommentTimeInterval = 60 * time.Minute
EBAI_BAD_COMMENTS_MAX_MODIFY_TIME = 24 // 小时
)
func (c *PurchaseHandler) StartRefreshComment() {
@@ -61,7 +62,7 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
Content: utils.Interface2String(result["content"]),
CommentCreatedAt: utils.Str2Time(utils.Interface2String(result["create_time"])),
IsReplied: int8(1 - utils.MustInterface2Int64(result["can_reply"])),
ModifyDuration: 24,
ModifyDuration: EBAI_BAD_COMMENTS_MAX_MODIFY_TIME,
OriginalMsg: string(utils.MustMarshal(result)),
}
// 直接得到的订单是饿了么的,尝试统一成饿百