This commit is contained in:
苏尹岚
2020-12-24 10:08:39 +08:00
parent ada4e33bbe
commit e639e0e666

View File

@@ -6,6 +6,8 @@ import (
"sync"
"time"
"git.rosy.net.cn/jx-callback/globals/api"
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
"github.com/astaxie/beego"
@@ -1620,7 +1622,9 @@ func OrderProfitWarning(order *model.GoodsOrder) {
}
userIDs = append(userIDs, user2.UserID)
for _, v := range userIDs {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, v, "警告此订单利润低于0", noticeMsg)
if api.DingDingAPI.GetToken() != "" {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, v, "警告此订单利润低于0", noticeMsg)
}
}
}
}