This commit is contained in:
苏尹岚
2021-04-21 17:08:26 +08:00
parent 5c825f44df
commit 56879c4d64
2 changed files with 5 additions and 3 deletions

View File

@@ -75,8 +75,10 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e
finishedAt = utils.Str2Time(jobExt.FinishedAtStr) finishedAt = utils.Str2Time(jobExt.FinishedAtStr)
job.FinishedAt = &finishedAt job.FinishedAt = &finishedAt
// 需根据任务类型做一些参数判断,比如门店商品链接,地址 // 需根据任务类型做一些参数判断,比如门店商品链接,地址
if job.AvgPrice == 0 { if job.JobCategoryID != model.JobCategoryIDUnion{
return errCode, fmt.Errorf("请输入单个任务奖励(保证)金额!") if job.AvgPrice == 0 {
return errCode, fmt.Errorf("请输入单个任务奖励(保证)金额!")
}
} }
switch job.JobCategoryID { switch job.JobCategoryID {
case model.JobCategoryIDwmtg: case model.JobCategoryIDwmtg:

View File

@@ -39,7 +39,7 @@ func init() {
type UnionInterface interface { type UnionInterface interface {
ShareUnionLink(ctx *jxcontext.Context, linkType, unionActID int, userID string) (link string, err error) ShareUnionLink(ctx *jxcontext.Context, linkType, unionActID int, userID string) (link string, err error)
GetUnionActList(ctx *jxcontext.Context, actType int) (result []*ActivityList, err error) GetUnionActList(ctx *jxcontext.Context, actType int) (result []*ActivityList, err error)
GetUnionCouponList(ctx *jxcontext.Context) //GetUnionCouponList(ctx *jxcontext.Context)
} }
func GetHandler(vendorID int) UnionInterface { func GetHandler(vendorID int) UnionInterface {