From bad35a0e0c2894ede5299752ef65605a56153c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 5 Nov 2020 10:43:39 +0800 Subject: [PATCH] panic --- business/jxstore/cms/job.go | 6 ++---- business/model/dao/dao.go | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index b42d13670..7cdffb682 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -281,10 +281,8 @@ func AcceptJob(ctx *jxcontext.Context, jobID int) (errCode string, err error) { } dao.Commit(db) //任务限时完成 - defer func() { - timer := checkLimitJobOrders(db, job, jobOrder, model.JobTimerTypeAccept) - JobTimerMap[jobOrder.JobOrderID] = timer - }() + timer := checkLimitJobOrders(db, job, jobOrder, model.JobTimerTypeAccept) + JobTimerMap[jobOrder.JobOrderID] = timer //特殊任务,如美团会员,是直接要支付 if job.Type == model.JobTypeMtMember { userBill, err := dao.GetUserBill(db, ctx.GetUserID(), "") diff --git a/business/model/dao/dao.go b/business/model/dao/dao.go index ab67a9db6..f3c3803f8 100644 --- a/business/model/dao/dao.go +++ b/business/model/dao/dao.go @@ -2,7 +2,6 @@ package dao import ( "errors" - "fmt" "reflect" "runtime/debug" "time" @@ -84,7 +83,6 @@ func (db *DaoDB) startWatchTransaction() { db.transactionWatchTimer = nil db.beginTransactionStack = nil }) - fmt.Println("111111111111111111111111111111111111111") } func (db *DaoDB) stopWatchTransaction() {