Commit 5142b639 authored by chenweijian's avatar chenweijian

派对申请

parent f2b53374
...@@ -81,10 +81,10 @@ func InviteApply(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -81,10 +81,10 @@ func InviteApply(c *gin.Context) (*mycontext.MyContext, error) {
model.Log.Errorf("InviteApply 没有邀请资格 param:%v", param) model.Log.Errorf("InviteApply 没有邀请资格 param:%v", param)
return myCtx, bizerr.InviteApplyNoPermission return myCtx, bizerr.InviteApplyNoPermission
} }
if user.ID != myUserId && !promotion_m.IsMyPromotionManager(model, user.ID, myUserId) { //if user.ID != myUserId && !promotion_m.IsMyPromotionManager(model, user.ID, myUserId) {
model.Log.Errorf("InviteApply 没有邀请资格 param:%v", param) // model.Log.Errorf("InviteApply 没有邀请资格 param:%v", param)
return myCtx, bizerr.InviteApplyNoPermission // return myCtx, bizerr.InviteApplyNoPermission
} //}
// 被邀请人是否已经被人提交过申请 // 被邀请人是否已经被人提交过申请
isApply, err := invite_m.IsInInviteApply(model, newUser.ID) isApply, err := invite_m.IsInInviteApply(model, newUser.ID)
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment