zhangchuanxing hai 1 mes
pai
achega
809c79fe48
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      controllers/roadshow/calendar.go

+ 6 - 4
controllers/roadshow/calendar.go

@@ -210,14 +210,16 @@ func (this *CalendarController) Add() {
 			this.FailWithMessage("添加失败", "获取客户信息失败,Err:"+err.Error())
 			return
 		}
-		isRaiRoadShow = true
-		resp.Points = points
-		resp.AddType = addType
 
 		if addType == 3 {
-			this.OkDetailed(resp, "保存成功")
+			this.FailWithMessage("客户暂无路演权限,请开通对应行业权限或者购买【路演服务】权限", "客户暂无路演权限,请开通对应行业权限或者购买【路演服务】权限")
 			return
 		}
+
+		isRaiRoadShow = true
+		resp.Points = points
+		resp.AddType = addType
+
 	}
 
 	rsCalendar := new(roadshow.RsCalendar)