|
@@ -95,7 +95,6 @@ func (this *ActivitySpecialCoAntroller) SpecialDetail() {
|
|
|
return
|
|
|
}
|
|
|
resp := new(models.CygxActivitySpecialResp)
|
|
|
- hasPermission := 0
|
|
|
activityInfo, err := models.GetCygxActivitySpecialDetailById(uid, activityId)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "获取信息失败"
|
|
@@ -113,6 +112,7 @@ func (this *ActivitySpecialCoAntroller) SpecialDetail() {
|
|
|
br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ //判断有没有对应的权限,如果没有则给出对应的状态码
|
|
|
if havePower {
|
|
|
resp.HasPermission = 1
|
|
|
count, err := models.GetCygxUserFollowSpecial(user.UserId)
|
|
@@ -158,8 +158,6 @@ func (this *ActivitySpecialCoAntroller) SpecialDetail() {
|
|
|
resp.SellerName = sellerName
|
|
|
resp.SellerMobile = sellerMobile
|
|
|
}
|
|
|
- //判断是否已经申请过
|
|
|
- resp.HasPermission = hasPermission
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|