1
This commit is contained in:
22
controllers/tiktok_store.go
Normal file
22
controllers/tiktok_store.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/tiktok_store"
|
||||
"git.rosy.net.cn/jx-callback/globals/api"
|
||||
"github.com/astaxie/beego/server/web"
|
||||
)
|
||||
|
||||
type TiktokController struct {
|
||||
web.Controller
|
||||
}
|
||||
|
||||
// CallbackTiktok 抖店用户下单订单推送 (tiktokStore)
|
||||
func (t *TiktokController) CallbackTiktok() {
|
||||
data, resp := api.TiktokStore.CreateOrderCallback(t.Ctx.Request)
|
||||
if resp.Code == 200 {
|
||||
// 业务处理
|
||||
tiktok_store.OnCallbackMsg(data)
|
||||
}
|
||||
t.Data["json"] = resp
|
||||
t.ServeJSON()
|
||||
}
|
||||
Reference in New Issue
Block a user