From bb373ef3915acdde914df10e3152699ccfa70fa5 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 15:04:43 +0800 Subject: [PATCH] auditmilit at --- business/model/dao/dao_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index 376870537..46aaeec0f 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -162,7 +162,7 @@ func GetJob(db *DaoDB, userIDs []string, categoryIDs, statuss, types []int, from return job, fmt.Errorf("未查询到对应的京东快递任务!") } if data, err := json.Marshal(jobs[0]); err == nil { - json.Unmarshal(data, job) + json.Unmarshal(data, &job) } return job, err }