From ae65388913315fb3965861bd6ebe4532f1a8b0d0 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sat, 19 Jan 2019 11:36:12 +0800 Subject: [PATCH] - change weimob callback --- controllers/weimob_callback.go | 6 +----- routers/router.go | 6 ------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/controllers/weimob_callback.go b/controllers/weimob_callback.go index 6dae72de8..b34d52b4c 100644 --- a/controllers/weimob_callback.go +++ b/controllers/weimob_callback.go @@ -39,10 +39,6 @@ func (c *WeimobController) Code() { } } -func (c *WeimobController) CreateOrder() { - c.onCallbackMsg() -} - -func (c *WeimobController) OrderStatusChange() { +func (c *WeimobController) Msg() { c.onCallbackMsg() } diff --git a/routers/router.go b/routers/router.go index 88caacbff..30128cdb0 100644 --- a/routers/router.go +++ b/routers/router.go @@ -8,7 +8,6 @@ package routers import ( - "git.rosy.net.cn/baseapi/platformapi/weimobapi" "git.rosy.net.cn/jx-callback/controllers" "github.com/astaxie/beego" @@ -103,9 +102,4 @@ func init() { beego.Any("/addstoremsg", func(ctx *beecontext.Context) { ctx.WriteString("pong\n") }) - - // 在微盟配置回调时能通过检测 - beego.Any("/weimob", func(ctx *beecontext.Context) { - ctx.Output.JSON(weimobapi.SuccessResponse, false, false) - }) }