|
@@ -42,7 +42,7 @@ func (this *MyReportController) List() {
|
|
|
if currentIndex <= 0 {
|
|
|
currentIndex = 1
|
|
|
}
|
|
|
- if user.Status != 2 {
|
|
|
+ if user.Status != utils.UserStatusFormal {
|
|
|
br.Msg = "该用户没有收藏权限"
|
|
|
return
|
|
|
}
|
|
@@ -89,7 +89,7 @@ func (this *MyReportController) Collect() {
|
|
|
return
|
|
|
}
|
|
|
user := this.User
|
|
|
- if user.Status != 2 {
|
|
|
+ if user.Status != utils.UserStatusFormal {
|
|
|
br.Msg = "用户没有权限收藏"
|
|
|
return
|
|
|
}
|
|
@@ -163,7 +163,7 @@ func (this *MyReportController) CollectCancel() {
|
|
|
return
|
|
|
}
|
|
|
user := this.User
|
|
|
- if user.Status != 2 {
|
|
|
+ if user.Status != utils.UserStatusFormal {
|
|
|
br.Msg = "用户没有权限收藏"
|
|
|
return
|
|
|
}
|
|
@@ -208,7 +208,7 @@ func (this *MyReportController) IsCollect() {
|
|
|
return
|
|
|
}
|
|
|
user := this.User
|
|
|
- if user.Status != 2 {
|
|
|
+ if user.Status != utils.UserStatusFormal {
|
|
|
br.Msg = "用户没有权限收藏"
|
|
|
return
|
|
|
}
|