21 lines
636 B
Go
21 lines
636 B
Go
package tiktok_store
|
|
|
|
import (
|
|
tiktokShop "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
|
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
|
"git.rosy.net.cn/jx-callback/business/model"
|
|
"git.rosy.net.cn/jx-callback/globals/api"
|
|
)
|
|
|
|
// OnOrderMsg 抖音
|
|
func OnOrderMsg(msgId string, msg interface{}) (response *tiktokShop.CallbackResponse) {
|
|
if CurPurchaseHandler != nil {
|
|
orderId, _ := api.TiktokStore.GetCallbackOrderId(msgId, msg)
|
|
|
|
jxutils.CallMsgHandler(func() {
|
|
response = CurPurchaseHandler.onOrderMsg(msgId, orderId, msg)
|
|
}, jxutils.ComposeUniversalOrderID(orderId, model.VendorIDDD))
|
|
}
|
|
return response
|
|
}
|