diff --git a/routers/router.go b/routers/router.go index 5d3f4fa5f..88caacbff 100644 --- a/routers/router.go +++ b/routers/router.go @@ -9,7 +9,6 @@ package routers import ( "git.rosy.net.cn/baseapi/platformapi/weimobapi" - "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/controllers" "github.com/astaxie/beego" @@ -107,6 +106,6 @@ func init() { // 在微盟配置回调时能通过检测 beego.Any("/weimob", func(ctx *beecontext.Context) { - ctx.WriteString(string(utils.MustMarshal(weimobapi.SuccessResponse))) + ctx.Output.JSON(weimobapi.SuccessResponse, false, false) }) }