|
@@ -106,12 +106,15 @@ func (this *ActivitySpecialCoAntroller) SpecialDetail() {
|
|
|
br.ErrMsg = "活动ID错误,Err:" + "activityId:" + strconv.Itoa(activityId)
|
|
|
return
|
|
|
}
|
|
|
- havePower, err := services.GetSpecialDetailUserPower(user, activityInfo)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取信息失败"
|
|
|
- br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
+ //havePower, err := services.GetSpecialDetailUserPower(user, activityInfo)
|
|
|
+ //if err != nil {
|
|
|
+ // br.Msg = "获取信息失败"
|
|
|
+ // br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+
|
|
|
+ var havePower bool
|
|
|
+ havePower = true
|
|
|
//判断有没有对应的权限,如果没有则给出对应的状态码
|
|
|
if havePower {
|
|
|
resp.HasPermission = 1
|
|
@@ -247,7 +250,6 @@ func (this *ActivitySpecialCoAntroller) SpecialTripAdd() {
|
|
|
itemBill.RegisterPlatform = 1
|
|
|
itemBill.ChartPermissionId = activityInfo.ChartPermissionId
|
|
|
|
|
|
-
|
|
|
var itemMeeting = new(models.CygxActivitySpecialMeetingDetail)
|
|
|
itemMeeting.UserId = user.UserId
|
|
|
itemMeeting.ActivityId = activityId
|
|
@@ -328,12 +330,12 @@ func (this *ActivitySpecialCoAntroller) SpecialTripAdd() {
|
|
|
return
|
|
|
}
|
|
|
if userType == 2 {
|
|
|
- tripRemaining = tripRemaining+itemBill.BillDetailed
|
|
|
+ tripRemaining = tripRemaining + itemBill.BillDetailed
|
|
|
itemBill.Total = strconv.Itoa(tripRemaining) + "次"
|
|
|
} else {
|
|
|
for k, num := range mapChartName {
|
|
|
if activityInfo.ChartPermissionName == k {
|
|
|
- num = num+ itemBill.BillDetailed
|
|
|
+ num = num + itemBill.BillDetailed
|
|
|
}
|
|
|
itemBill.Total += k + strconv.Itoa(num) + "次+"
|
|
|
}
|