by Robin at 20240229; fix

This commit is contained in:
Leufolium 2024-02-29 10:34:21 +08:00
parent b2c8a76e37
commit 0e297f564c
5 changed files with 9 additions and 8 deletions

View File

@ -2435,14 +2435,14 @@ func (m *Mongo) GetContactCustomerServiceList(ctx *gin.Context, req *contact_cus
filterInClause := []qmgo.M{}
if req.CtLowerBound != nil {
filterInClause = append(filterInClause, qmgo.M{
"start_time": qmgo.M{
"ct": qmgo.M{
"$gt": util.DerefInt64(req.CtLowerBound),
},
})
}
if req.CtUpperBound != nil {
filterInClause = append(filterInClause, qmgo.M{
"end_time": qmgo.M{
"ct": qmgo.M{
"$lte": util.DerefInt64(req.CtUpperBound),
},
})

View File

@ -53,6 +53,7 @@ func (s *CronService) Init(c any) (err error) {
exec.RegTask("text_audit_batch", s.TextAuditBatch)
exec.RegTask("text_audit_batch_his", s.TextAuditBatchHis)
//exec.RegTask("clear_content_audit_batch_execution_logs", s.ClearContentAuditBatchExecutionLogs)
exec.RegTask("send_contact_customer_services_of_last_minute", s.SendContactCustomerServicesOfLastMinute)
exec.LogHandler(customLogHandle)
//注册任务handler

View File

@ -591,7 +591,7 @@ func (s *Service) utilStringifyContactCustomerServices(ctx *gin.Context, contact
msgBuilder.WriteString("上分钟收到的联系客服消息:\n\n")
for i, contactCustomerService := range contactCustomerServices {
sessionId := util.DerefInt64(contactCustomerService.Id)
sessionId := util.DerefInt64(contactCustomerService.SessionId)
subMid := util.DerefInt64(sessionMap[sessionId].SubMid)
isRead := util.DerefInt64(contactCustomerService.IsRead)
message := util.DerefString(contactCustomerService.Message)

View File

@ -120,5 +120,5 @@ xxl_job:
log_path: "/app/ironfan/log/xxl_job/"
ding_talk_robot:
access_token: ""
secret: ""
access_token: "65f11ade605568c34f33ff79ed4c20c1721bd6da18511d8e08a6ed9666c4b8b4"
secret: "SECcc49257b2681b6488ab4be8ee815c61027a7254e2be3239c229de38b22207b5b"

View File

@ -22,7 +22,7 @@ mix_mongo:
mix_mysql:
uri: "127.0.0.1:3306"
username: "root"
password: "Wishpal@2023"
password: "Xbz@114514"
timeout: 3
read_timeout_s: 5
write_timeout_s: 3
@ -119,5 +119,5 @@ xxl_job:
log_path: "/app/ironfan/log/xxl_job/"
ding_talk_robot:
access_token: ""
secret: ""
access_token: "65f11ade605568c34f33ff79ed4c20c1721bd6da18511d8e08a6ed9666c4b8b4"
secret: "SECcc49257b2681b6488ab4be8ee815c61027a7254e2be3239c229de38b22207b5b"