- 重构配送门店管理

This commit is contained in:
gazebo
2019-07-23 14:29:58 +08:00
parent 79d81fdd73
commit 22737c7681
13 changed files with 325 additions and 159 deletions

View File

@@ -49,3 +49,16 @@ func (c *MtpsController) Except() {
c.Abort("404")
}
}
func (c *MtpsController) StoreStatus() {
if c.Ctx.Input.Method() == http.MethodPost {
obj, callbackResponse := api.MtpsAPI.GetShopStatusCallbackMsg(c.Ctx.Request)
if callbackResponse == nil {
callbackResponse = mtps.OnStoreStatus(obj)
}
c.Data["json"] = callbackResponse
c.ServeJSON()
} else {
c.Abort("404")
}
}