auditmilit at
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user