mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2024-11-13 14:09:20 +08:00
修复bugs
This commit is contained in:
parent
96413c3c16
commit
53ca08e1f1
@ -18,10 +18,11 @@ import (
|
||||
"boss/models/system"
|
||||
"boss/service"
|
||||
"boss/utils"
|
||||
"github.com/beego/beego/v2/core/logs"
|
||||
"github.com/rs/xid"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/beego/beego/v2/core/logs"
|
||||
"github.com/rs/xid"
|
||||
)
|
||||
|
||||
type AddController struct {
|
||||
|
@ -420,7 +420,7 @@ func (c *UpdateService) ResultPayFor(resultType, bankOrderId string) *datas.KeyD
|
||||
return keyDataJSON
|
||||
}
|
||||
|
||||
u, _ := web.AppConfig.String("host")
|
||||
u, _ := web.AppConfig.String("gateway::host")
|
||||
u = u + "/solve/payfor/result?" + "resultType=" + resultType + "&bankOrderId=" + bankOrderId
|
||||
s, err := httplib.Get(u).String()
|
||||
if err != nil || s == common.FAIL {
|
||||
|
@ -19,6 +19,6 @@ func init() {
|
||||
|
||||
web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery")
|
||||
web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate")
|
||||
web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "QuerySupplierPayForResult")
|
||||
web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "SolvePayForResult")
|
||||
web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "*:QuerySupplierPayForResult")
|
||||
web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "*:SolvePayForResult")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user