正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
@@ -55,20 +55,26 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er | @@ -55,20 +55,26 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er | ||
55 | specialDIds = append(specialDIds, op.CheckOption.Departments[i].Id) | 55 | specialDIds = append(specialDIds, op.CheckOption.Departments[i].Id) |
56 | } | 56 | } |
57 | check = op.Check | 57 | check = op.Check |
58 | + } else { | ||
59 | + log.Error(err) | ||
60 | + return | ||
58 | } | 61 | } |
59 | if len(specialDIds) == 0 { | 62 | if len(specialDIds) == 0 { |
60 | specialDIds = append(specialDIds, 0) | 63 | specialDIds = append(specialDIds, 0) |
61 | } | 64 | } |
65 | + log.Debug(fmt.Sprintf("user:%v check:%v", uid, check)) | ||
62 | for i := range items { | 66 | for i := range items { |
63 | if items[i].ChanceStatus != 0 { | 67 | if items[i].ChanceStatus != 0 { |
64 | continue | 68 | continue |
65 | } | 69 | } |
66 | if items[i].ChanceId == 0 { | 70 | if items[i].ChanceId == 0 { |
67 | items[i].ChanceStatus = protocol.ChanceStatusClose | 71 | items[i].ChanceStatus = protocol.ChanceStatusClose |
72 | + log.Debug(fmt.Sprintf("chance_id:%v 关闭原因:%v", items[i].ChanceId, "机会编号0")) | ||
68 | continue | 73 | continue |
69 | } | 74 | } |
70 | if items[i].Chance.Provider == nil { | 75 | if items[i].Chance.Provider == nil { |
71 | items[i].ChanceStatus = protocol.ChanceStatusClose | 76 | items[i].ChanceStatus = protocol.ChanceStatusClose |
77 | + log.Debug(fmt.Sprintf("chance_id:%v 关闭原因:%v", items[i].ChanceId, "机会提交人为null")) | ||
72 | continue | 78 | continue |
73 | } | 79 | } |
74 | var chancePublicStatus = items[i].Chance.PublicStatus | 80 | var chancePublicStatus = items[i].Chance.PublicStatus |
-
请 注册 或 登录 后发表评论