27 lines
640 B
Go
27 lines
640 B
Go
package tiktok_store
|
|
|
|
import (
|
|
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
|
tiktokShop "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
)
|
|
|
|
// 美团回调接口
|
|
func OnCallbackMsg(msg *tiktokShop.CreateOrderCallback) (resp *mtwmapi.CallbackResponse) {
|
|
if CurPurchaseHandler != nil {
|
|
switch msg.Tag {
|
|
case tiktokShop.CallbackMsgTagId:
|
|
|
|
}
|
|
}
|
|
return response
|
|
}
|
|
|
|
func GetOrderIDFromMsg(msg *tiktokShop.CreateOrderCallback) string {
|
|
return utils.Int64ToStr(msg.Data.PId)
|
|
}
|
|
|
|
func GetVendorStoreIDFromMsg(msg *mtwmapi.CallbackMsg) string {
|
|
return msg.FormData.Get(mtwmapi.KeyAppPoiCode)
|
|
}
|