|
@@ -246,6 +246,16 @@ func (this *ActivitySpecialCoAntroller) SpecialTripAdd() {
|
|
|
itemBill.RegisterPlatform = 1
|
|
|
itemBill.ChartPermissionId = activityInfo.ChartPermissionId
|
|
|
|
|
|
+ var itemMeeting = new(models.CygxActivitySpecialMeetingDetail)
|
|
|
+ itemMeeting.UserId = user.UserId
|
|
|
+ itemMeeting.ActivityId = activityId
|
|
|
+ itemMeeting.CreateTime = time.Now()
|
|
|
+ itemMeeting.Mobile = user.Mobile
|
|
|
+ itemMeeting.Email = user.Email
|
|
|
+ itemMeeting.CompanyId = user.CompanyId
|
|
|
+ itemMeeting.CompanyName = user.CompanyName
|
|
|
+ itemMeeting.RealName = user.RealName
|
|
|
+
|
|
|
go services.ActivitySpecialUserRmind(user, activityId, 2)
|
|
|
//判断是删除还是添加
|
|
|
if total == 0 {
|
|
@@ -309,7 +319,20 @@ func (this *ActivitySpecialCoAntroller) SpecialTripAdd() {
|
|
|
itemBill.BillDetailed = 0 //48小时之内,取消报名之后二次报名,不扣除流水记录
|
|
|
}
|
|
|
}
|
|
|
- go models.AddCygxActivitySpecialTripBill(itemBill)
|
|
|
+ //添加流水记录
|
|
|
+ err = models.AddCygxActivitySpecialTripBill(itemBill)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "报名失败,"
|
|
|
+ br.ErrMsg = "AddCygxActivitySpecialTripBill,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //添加数据到会信息
|
|
|
+ err = models.AddCygxActivitySpecialMeetingDetail(itemMeeting)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "报名失败,"
|
|
|
+ br.ErrMsg = "AddCygxActivitySpecialMeetingDetail,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
hasPermission, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermission(user)
|