wkyuer 8 months ago
parent
commit
4203aa4225
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/jfw/modules/subscribepay/src/service/commonAction.go

+ 2 - 1
src/jfw/modules/subscribepay/src/service/commonAction.go

@@ -825,7 +825,7 @@ func (this *CommonAction) GetReturnResult() {
 		}
 		}
 		rData := util.Mysql.FindOne("return_money_online", map[string]interface{}{
 		rData := util.Mysql.FindOne("return_money_online", map[string]interface{}{
 			"token": token,
 			"token": token,
-		}, "transaction_id,pay_time,status", "")
+		}, "transaction_id,pay_time,status,order_code", "")
 		if rData == nil || len(*rData) == 0 {
 		if rData == nil || len(*rData) == 0 {
 			return nil, fmt.Errorf("未知回款单")
 			return nil, fmt.Errorf("未知回款单")
 		}
 		}
@@ -835,6 +835,7 @@ func (this *CommonAction) GetReturnResult() {
 		)
 		)
 		r["success"] = status > 0
 		r["success"] = status > 0
 		if status > 0 {
 		if status > 0 {
+			r["order_code"] = (*rData)["order_code"]
 			r["transaction_id"] = (*rData)["transaction_id"]
 			r["transaction_id"] = (*rData)["transaction_id"]
 			if payTime := gconv.String((*rData)["pay_time"]); payTime != "" {
 			if payTime := gconv.String((*rData)["pay_time"]); payTime != "" {
 				if t, e := time.Parse(time.DateTime, payTime); e == nil {
 				if t, e := time.Parse(time.DateTime, payTime); e == nil {