This commit is contained in:
苏尹岚
2020-12-09 17:53:08 +08:00
parent a3258e9d1a
commit 4a4e4a69a9
3 changed files with 21 additions and 5 deletions

View File

@@ -93,6 +93,7 @@ func InitServiceInfo(version string, buildTime time.Time, gitCommit string) {
}]`,
"billTypeNames": model.BillTypeNames,
"deliveryStatusName": model.DeliveryStatusName,
"cashbackName": model.CashbackName,
},
}
}

View File

@@ -53,10 +53,13 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e
finishedAt time.Time
DayTimeBegin, DayTimeEnd = jxutils.GetDayTime()
)
//需根据任务类型做一些参数判断,比如门店商品链接,地址
// switch job.JobCategoryID {
// case 1:
// }
// 需根据任务类型做一些参数判断,比如门店商品链接,地址
switch job.JobCategoryID {
case model.JobCategoryIDwmtg:
default:
return errCode, fmt.Errorf("暂不支持的任务类型! %v", job.JobCategoryID)
}
if data, err := json.Marshal(jobExt); err == nil {
json.Unmarshal(data, &job)
}