From 53ca08e1f13c1a93ddb15466637e0bd27892a6bd Mon Sep 17 00:00:00 2001 From: kongyuebin Date: Tue, 26 Apr 2022 08:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boss/controllers/addController.go | 5 +++-- boss/service/updateService.go | 2 +- gateway/routers/router.go | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/boss/controllers/addController.go b/boss/controllers/addController.go index e8dcffd..04fb8ee 100644 --- a/boss/controllers/addController.go +++ b/boss/controllers/addController.go @@ -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 { diff --git a/boss/service/updateService.go b/boss/service/updateService.go index 37d87f6..df742ae 100644 --- a/boss/service/updateService.go +++ b/boss/service/updateService.go @@ -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 { diff --git a/gateway/routers/router.go b/gateway/routers/router.go index bf8c1d1..ee878af 100644 --- a/gateway/routers/router.go +++ b/gateway/routers/router.go @@ -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") }