修复bugs

This commit is contained in:
kongyuebin 2022-04-26 08:49:08 +08:00
parent 96413c3c16
commit 53ca08e1f1
3 changed files with 6 additions and 5 deletions

View File

@ -18,10 +18,11 @@ import (
"boss/models/system" "boss/models/system"
"boss/service" "boss/service"
"boss/utils" "boss/utils"
"github.com/beego/beego/v2/core/logs"
"github.com/rs/xid"
"strconv" "strconv"
"strings" "strings"
"github.com/beego/beego/v2/core/logs"
"github.com/rs/xid"
) )
type AddController struct { type AddController struct {

View File

@ -420,7 +420,7 @@ func (c *UpdateService) ResultPayFor(resultType, bankOrderId string) *datas.KeyD
return keyDataJSON return keyDataJSON
} }
u, _ := web.AppConfig.String("host") u, _ := web.AppConfig.String("gateway::host")
u = u + "/solve/payfor/result?" + "resultType=" + resultType + "&bankOrderId=" + bankOrderId u = u + "/solve/payfor/result?" + "resultType=" + resultType + "&bankOrderId=" + bankOrderId
s, err := httplib.Get(u).String() s, err := httplib.Get(u).String()
if err != nil || s == common.FAIL { if err != nil || s == common.FAIL {

View File

@ -19,6 +19,6 @@ func init() {
web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery") web.Router("/gateway/supplier/order/query", &gateway.OrderController{}, "*:OrderQuery")
web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate") web.Router("/gateway/update/order", &gateway.OrderController{}, "*:OrderUpdate")
web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "QuerySupplierPayForResult") web.Router("/gateway/supplier/payfor/query", &gateway.PayForGateway{}, "*:QuerySupplierPayForResult")
web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "SolvePayForResult") web.Router("/solve/payfor/result", &gateway.PayForGateway{}, "*:SolvePayForResult")
} }