1
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
|||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -25,8 +24,7 @@ var EBaiVendorStoreIDList = new(sync.Map)
|
|||||||
|
|
||||||
func (c *EbaiController) Msg() {
|
func (c *EbaiController) Msg() {
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
obj, callbackResponse := api.EbaiAPI.GetCallbackMsg(c.Ctx.Request)
|
obj, callbackResponse := api.EbaiAPI.GetCallbackMsg(c.Ctx.Request, web.BConfig.RunMode)
|
||||||
globals.SugarLogger.Debugf("-------obj := %s", utils.Format4Output(utils.Struct2Map(obj, "", false), false))
|
|
||||||
if callbackResponse == nil {
|
if callbackResponse == nil {
|
||||||
vendorStoreId, _ := utils.TryInterface2Int64(obj.Body["platform_shop_id"])
|
vendorStoreId, _ := utils.TryInterface2Int64(obj.Body["platform_shop_id"])
|
||||||
if _, have := EBaiVendorStoreIDList.Load(vendorStoreId); vendorStoreId != 0 && !have {
|
if _, have := EBaiVendorStoreIDList.Load(vendorStoreId); vendorStoreId != 0 && !have {
|
||||||
@@ -62,6 +60,8 @@ func (c *EbaiController) Msg() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *EbaiController) EBaiMsgPush2FruitsOrPet(serverType string, msg map[string]interface{}) *ebaiapi.CallbackResponse {
|
func (c *EbaiController) EBaiMsgPush2FruitsOrPet(serverType string, msg map[string]interface{}) *ebaiapi.CallbackResponse {
|
||||||
|
msgBody, _ := json.Marshal(msg["body"])
|
||||||
|
msg["body"] = string(msgBody)
|
||||||
cl := http.Client{}
|
cl := http.Client{}
|
||||||
var request *http.Request
|
var request *http.Request
|
||||||
var err error
|
var err error
|
||||||
|
|||||||
Reference in New Issue
Block a user