|
@@ -576,6 +576,12 @@ func (this *ActivityCoAntroller) Detail() {
|
|
br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ detailConfig, err := models.GetConfigByCode("free_trial_card")
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取数据失败"
|
|
|
|
+ br.ErrMsg = "城市配置信息失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
//获取FICC销售信息 如果是FICC的客户类型,则默认他申请过
|
|
//获取FICC销售信息 如果是FICC的客户类型,则默认他申请过
|
|
sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
|
|
sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
|
|
@@ -616,6 +622,12 @@ func (this *ActivityCoAntroller) Detail() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if detailConfig.ConfigValue == "1" {
|
|
|
|
+ if hasPermission == 3 {
|
|
|
|
+ resp.IsShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
resp.HasPermission = hasPermission
|
|
resp.HasPermission = hasPermission
|
|
resp.OperationMode = "Apply"
|
|
resp.OperationMode = "Apply"
|
|
resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
@@ -717,6 +729,11 @@ func (this *ActivityCoAntroller) Detail() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if detailConfig.ConfigValue == "1" {
|
|
|
|
+ if hasPermission == 3 {
|
|
|
|
+ resp.IsShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
resp.HasPermission = hasPermission
|
|
resp.HasPermission = hasPermission
|
|
resp.OperationMode = "Apply"
|
|
resp.OperationMode = "Apply"
|
|
resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
|
|
@@ -795,6 +812,11 @@ func (this *ActivityCoAntroller) Detail() {
|
|
resp.Detail = activityInfo
|
|
resp.Detail = activityInfo
|
|
}
|
|
}
|
|
resp.HasPermission = hasPermission
|
|
resp.HasPermission = hasPermission
|
|
|
|
+ if detailConfig.ConfigValue == "1" {
|
|
|
|
+ if hasPermission == 3 {
|
|
|
|
+ resp.IsShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
br.Ret = 200
|
|
br.Ret = 200
|
|
br.Success = true
|
|
br.Success = true
|
|
br.Msg = "获取成功"
|
|
br.Msg = "获取成功"
|