auditmilit at

This commit is contained in:
苏尹岚
2020-11-05 14:56:42 +08:00
parent 0e0a5db339
commit 7b69b96a8a

View File

@@ -158,6 +158,9 @@ func GetJob(db *DaoDB, userIDs []string, categoryIDs, statuss, types []int, from
if err != nil {
return job, err
}
if len(jobs) == 0 {
return job, fmt.Errorf("未查询到对应的京东快递任务!")
}
if data, err := json.Marshal(jobs[0]); err == nil {
json.Unmarshal(data, job)
}