xingzai 1 vuosi sitten
vanhempi
commit
8851861112
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 6 6
      controllers/activity_special.go

+ 6 - 6
controllers/activity_special.go

@@ -284,12 +284,6 @@ func (this *ActivitySpecialController) SpecialTripAdd() {
 				if sellerItem != nil {
 					item.SellerName = sellerItem.RealName
 				}
-				err = models.AddCygxActivitySpecialTrip(item)
-				if err != nil {
-					br.Msg = "操作失败"
-					br.ErrMsg = "操作失败,Err:" + err.Error()
-					return
-				}
 				if user.OutboundMobile != "" {
 					item.OutboundMobile = user.OutboundMobile
 					if user.OutboundCountryCode == "" {
@@ -305,6 +299,12 @@ func (this *ActivitySpecialController) SpecialTripAdd() {
 						item.CountryCode = user.CountryCode
 					}
 				}
+				err = models.AddCygxActivitySpecialTrip(item)
+				if err != nil {
+					br.Msg = "操作失败"
+					br.ErrMsg = "操作失败,Err:" + err.Error()
+					return
+				}
 				//SignupStatus  int    `description:"返回状态:1:成功 、2 :人数已满 、3:调研次数已用完、 4:超时"`
 			} else {
 				updateParams := make(map[string]interface{})