pay result
This commit is contained in:
@@ -58,6 +58,7 @@ func (p *PayHandler) CreatePay() (err error) {
|
||||
}
|
||||
result, err := api.WxpayAPI.CreateUnifiedOrder(param)
|
||||
if err == nil {
|
||||
p.WxPayResult = result
|
||||
p.Order.PrepayID = result.PrepayID
|
||||
p.Order.Comment = result.CodeURL
|
||||
_, err = dao.UpdateEntity(dao.GetDB(), p.Order, "PrepayID", "Comment")
|
||||
|
||||
@@ -3,6 +3,8 @@ package financial
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/wxpayapi"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
|
||||
@@ -16,6 +18,8 @@ type PayHandler struct {
|
||||
Ctx *jxcontext.Context
|
||||
Order *model.Order
|
||||
VendorPayType string
|
||||
|
||||
WxPayResult *wxpayapi.CreateOrderResult `json:"wxPayResult"`
|
||||
}
|
||||
|
||||
type PayHandlerInterface interface {
|
||||
|
||||
Reference in New Issue
Block a user