diff --git a/src/app/front/shop/ols/payment_c.go b/src/app/front/shop/ols/payment_c.go index 55e2f865c..aea55d241 100644 --- a/src/app/front/shop/ols/payment_c.go +++ b/src/app/front/shop/ols/payment_c.go @@ -43,9 +43,9 @@ func (this *PaymentC) getAliPayment(ctx *echox.Context) payment.IPayment { cnf := ctx.App.Config() if guitl.IsMobileAgent(ctx.Request().UserAgent()) { p = &payment.AliPayWap{ - Partner: cnf.Get(variable.Alipay_Partner), - Key: cnf.Get(variable.Alipay_Key), - Seller: cnf.Get(variable.Alipay_Seller), + Partner: cnf.GetString(variable.Alipay_Partner), + Key: cnf.GetString(variable.Alipay_Key), + Seller: cnf.GetString(variable.Alipay_Seller), } // p = &payment.AliPayWap{ // Partner: "2088021187655650", @@ -71,9 +71,9 @@ func (this *PaymentC) getAliPayment(ctx *echox.Context) payment.IPayment { // } } else { p = &payment.AliPay{ - Partner: cnf.Get(variable.Alipay_Partner), - Key: cnf.Get(variable.Alipay_Key), - Seller: cnf.Get(variable.Alipay_Seller), + Partner: cnf.GetString(variable.Alipay_Partner), + Key: cnf.GetString(variable.Alipay_Key), + Seller: cnf.GetString(variable.Alipay_Seller), } } return p diff --git a/src/app/front/shop/ols/serve.go b/src/app/front/shop/ols/serve.go index 3da5b1d71..329d48237 100644 --- a/src/app/front/shop/ols/serve.go +++ b/src/app/front/shop/ols/serve.go @@ -14,7 +14,7 @@ import ( "go2o/src/core/domain/interface/enum" "go2o/src/x/echox" "gopkg.in/labstack/echo.v1" - //mw "gopkg.in/labstack/echo.v1/middleware" + mw "gopkg.in/labstack/echo.v1/middleware" "net/http" "strings" "sync" @@ -78,7 +78,7 @@ func registerRoutes(s *echox.Echo) { func getServe(path string) *echox.Echo { s := echox.New() - //s.Use(mw.Recover()) + s.Use(mw.Recover()) s.Use(echox.StopAttack) s.Use(shopCheck) registerRoutes(s)