This commit is contained in:
邹宗楠
2022-08-31 16:47:41 +08:00
parent 78f0183730
commit 97a83f1c2f
11 changed files with 1170 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
package tiktok_store
import (
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
tiktokShop "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/tiktok_api"
)
// 美团回调接口
func OnCallbackMsg(msg *tiktokShop.CreateOrderCallback) (tiktokShop *mtwmapi.CallbackResponse) {
if CurPurchaseHandler != nil {
switch msg.Tag {
case tiktokShop.CallbackMsgTagId:
}
}
return response
}
func GetOrderIDFromMsg(msg *mtwmapi.CallbackMsg) string {
return msg.FormData.Get(mtwmapi.KeyOrderID)
}
func GetVendorStoreIDFromMsg(msg *mtwmapi.CallbackMsg) string {
return msg.FormData.Get(mtwmapi.KeyAppPoiCode)
}