- change alphpa jd key.
This commit is contained in:
@@ -142,7 +142,7 @@ dbConnectStr = "root:WebServer@1@tcp(127.0.0.1:3306)/jxd_dev_0?charset=utf8mb4&l
|
|||||||
[alpha]
|
[alpha]
|
||||||
httpport = 8088
|
httpport = 8088
|
||||||
|
|
||||||
jdToken = "c8854ef2-f80a-45ee-aceb-dc8014d646f8"
|
jdToken = "9fd1424e-3a2c-4c2a-a794-f5b6782524e1"
|
||||||
jdAppKey = "06692746f7224695ad4788ce340bc854"
|
jdAppKey = "06692746f7224695ad4788ce340bc854"
|
||||||
jdSecret = "d6b42a35a7414a5490d811654d745c84"
|
jdSecret = "d6b42a35a7414a5490d811654d745c84"
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/promotion"
|
"git.rosy.net.cn/jx-callback/business/jxstore/promotion"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/jd"
|
"git.rosy.net.cn/jx-callback/business/partner/purchase/jd"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
@@ -94,8 +95,11 @@ func (c *DjswController) OrderCommentPush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *DjswController) Token() {
|
func (c *DjswController) Token() {
|
||||||
globals.SugarLogger.Info(string(c.Ctx.Input.RequestBody))
|
urlValues, err := utils.HTTPBody2Values(c.Ctx.Input.RequestBody, false)
|
||||||
c.Data["json"] = jdapi.Err2CallbackResponse(nil, "")
|
if err == nil {
|
||||||
|
globals.SugarLogger.Info(utils.Format4Output(utils.URLValues2Map(urlValues), false))
|
||||||
|
}
|
||||||
|
c.Data["json"] = jdapi.Err2CallbackResponse(err, "")
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user