aa
This commit is contained in:
@@ -1973,7 +1973,7 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType, resource
|
|||||||
sid string //推广位ID,美团为userID,淘宝饿了么本地化暂时是固定的京西推广位ID,pdd为表中推广位ID
|
sid string //推广位ID,美团为userID,淘宝饿了么本地化暂时是固定的京西推广位ID,pdd为表中推广位ID
|
||||||
mobile, userID = ctx.GetMobileAndUserID()
|
mobile, userID = ctx.GetMobileAndUserID()
|
||||||
userBinds []*model.UserUnionBind
|
userBinds []*model.UserUnionBind
|
||||||
userBind = &model.UserUnionBind{}
|
userBind *model.UserUnionBind
|
||||||
)
|
)
|
||||||
if jobID == 0 {
|
if jobID == 0 {
|
||||||
return "", fmt.Errorf("该活动已结束,请选择其他活动!")
|
return "", fmt.Errorf("该活动已结束,请选择其他活动!")
|
||||||
@@ -2015,7 +2015,7 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType, resource
|
|||||||
}
|
}
|
||||||
//2、分享链接
|
//2、分享链接
|
||||||
if handler != nil {
|
if handler != nil {
|
||||||
bindImg := &model.UserUnionBindImg{}
|
var bindImg *model.UserUnionBindImg
|
||||||
if isImg {
|
if isImg {
|
||||||
bindImg, _ = dao.GetUserUnionBindImg(db, userBind.UnionID, job.UnionActID)
|
bindImg, _ = dao.GetUserUnionBindImg(db, userBind.UnionID, job.UnionActID)
|
||||||
if bindImg != nil {
|
if bindImg != nil {
|
||||||
@@ -2032,7 +2032,7 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType, resource
|
|||||||
link = jxutils.MixWatermarkImg(downloadURL+"?imageView2/1/w/120/h/120/q/75", job.UnionImg, job.UnionQrcodePosition)
|
link = jxutils.MixWatermarkImg(downloadURL+"?imageView2/1/w/120/h/120/q/75", job.UnionImg, job.UnionQrcodePosition)
|
||||||
link += "?imageslim"
|
link += "?imageslim"
|
||||||
//id为0表示要新增
|
//id为0表示要新增
|
||||||
if bindImg.ID == 0 {
|
if bindImg == nil {
|
||||||
bindImgAdd := &model.UserUnionBindImg{
|
bindImgAdd := &model.UserUnionBindImg{
|
||||||
UnionID: sid,
|
UnionID: sid,
|
||||||
ActID: job.UnionActID,
|
ActID: job.UnionActID,
|
||||||
|
|||||||
Reference in New Issue
Block a user