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