diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index c365ae1b2..36f578f35 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -75,8 +75,10 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e finishedAt = utils.Str2Time(jobExt.FinishedAtStr) job.FinishedAt = &finishedAt // 需根据任务类型做一些参数判断,比如门店商品链接,地址 - if job.AvgPrice == 0 { - return errCode, fmt.Errorf("请输入单个任务奖励(保证)金额!") + if job.JobCategoryID != model.JobCategoryIDUnion{ + if job.AvgPrice == 0 { + return errCode, fmt.Errorf("请输入单个任务奖励(保证)金额!") + } } switch job.JobCategoryID { case model.JobCategoryIDwmtg: diff --git a/business/jxstore/partner/partner.go b/business/jxstore/partner/partner.go index d2c449288..eb8d6a722 100644 --- a/business/jxstore/partner/partner.go +++ b/business/jxstore/partner/partner.go @@ -39,7 +39,7 @@ func init() { type UnionInterface interface { ShareUnionLink(ctx *jxcontext.Context, linkType, unionActID int, userID string) (link string, 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 {