From 18ebaa41c47d8d8b680db96ea70756a33ccadbc3 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 22 Apr 2021 16:51:09 +0800 Subject: [PATCH] a --- business/jxstore/cms/job.go | 7 +++---- business/jxstore/cms/order.go | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 4a3d2e640..30846735e 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1971,10 +1971,9 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType int) (lin sid string jobOrderID int64 ) - if shareType == partner.ShareTypeOther { - jobOrderID, _, _ = AcceptJob(ctx, jobID, 0, 0) - } else { - sid = partner.MtUnionJxSID + jobOrderID, _, err = AcceptJob(ctx, jobID, 0, 0) + if err != nil { + return "", err } if jobOrderID != 0 { sid = utils.Int64ToStr(jobOrderID) diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index bb8b82e70..d23b06750 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -194,11 +194,9 @@ func UnionOrderCallBack(unionOrder *partner.UnionOrderInfo) (err error) { jobOrder = &model.JobOrder{} db = dao.GetDB() ) - if unionOrder.SID == partner.MtUnionJxSID { - globals.SugarLogger.Debugf("result UnionOrderCallBack jxsysorder") + if unionOrder.SID == "" { return err } - jobOrder.ID = utils.Str2Int64(unionOrder.SID) txDB, _ := dao.Begin(db) defer func() {