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