From 9671e1b34b2c2f34d9070b1b51a48ef8f9e76fc4 Mon Sep 17 00:00:00 2001 From: jarryliu Date: Sat, 14 May 2016 18:56:49 +0800 Subject: [PATCH] commit --- src/app/front/shop/ols/payment_c.go | 12 ++++++------ src/app/front/shop/ols/serve.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) 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)