wangshan пре 4 година
родитељ
комит
8e6e129149

+ 3 - 3
src/jfw/modules/publicapply/src/drainage/entity/entity.go

@@ -77,7 +77,7 @@ func DrainageUserLog(DUI DrainageUserInfo) string {
 }
 
 //
-func UpdateDrainageUserLogById(id, P string, price int) bool {
+func UpdateDrainageUserLogById(id, P, orderCode string, price int) bool {
 	//是否点击购买按钮
 	var set = map[string]interface{}{
 		"isClickBuyBT": 1,
@@ -86,12 +86,12 @@ func UpdateDrainageUserLogById(id, P string, price int) bool {
 		switch P {
 		case "OBT":
 			//是否点击下单按钮
-			set = map[string]interface{}{"isOBT": 1, "price": price}
+			set = map[string]interface{}{"isOBT": 1, "price": price, "orderCode": orderCode}
 		case "Paid":
 			//是否已支付
 			set = map[string]interface{}{"isPaid": 1}
 		case "ICRP":
-			//是否进入留资页面
+			//是否触发留资
 			set = map[string]interface{}{"isICRP": 1}
 		case "ICRW":
 			//是否留资

+ 4 - 3
src/jfw/modules/publicapply/src/drainage/service/service.go

@@ -23,9 +23,10 @@ func (this *DrainageStruct) Bmbutinfo(id string) {
 		if id == "" {
 			return Result{Data: nil, Error_msg: Error_msg_1002}
 		}
-		p := this.GetString("p")             //买点类型
-		price, _ := this.GetInteger("price") //下单价格
-		m := UpdateDrainageUserLogById(id, p, price)
+		p := this.GetString("p")                 //买点类型
+		price, _ := this.GetInteger("price")     //下单价格
+		orderCode := this.GetString("orderCode") //订单编号
+		m := UpdateDrainageUserLogById(id, p, orderCode, price)
 		return Result{Data: m}
 	}()
 	this.ServeJson(r)