aa
This commit is contained in:
@@ -93,6 +93,7 @@ func InitServiceInfo(version string, buildTime time.Time, gitCommit string) {
|
||||
}]`,
|
||||
"billTypeNames": model.BillTypeNames,
|
||||
"deliveryStatusName": model.DeliveryStatusName,
|
||||
"cashbackName": model.CashbackName,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user