aa
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user