From 3ffc2e888bb382c34b04c43330a7254d7d2000f1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 26 Jan 2024 09:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chain_transfer/svc/svc_turnchain.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chain_transfer/svc/svc_turnchain.go b/chain_transfer/svc/svc_turnchain.go index f005a7f..6d2c1b9 100644 --- a/chain_transfer/svc/svc_turnchain.go +++ b/chain_transfer/svc/svc_turnchain.go @@ -38,6 +38,14 @@ func TurnChainFeatures(eg *xorm.Engine, tikTokBase map[string]string, user *mode ) userProfile, _ := db.UserProfileFindByID(eg, user.Uid) if userProfile != nil { + if pvd == md.PVD_TB || pvd == md.PVD_TM { + //新的渠道id 存储 + relation := db.GetTaobaoUserRelationByUid(eg, userProfile.Uid) + if relation != nil { + userProfile.AccTaobaoShareId = relation.RelationId + tikTokBase["union_id"] = zhios_third_party_utils.IntToStr(relation.UnionId) + } + } tikTokBase["acc_taobao_share_id"] = zhios_third_party_utils.Int64ToStr(userProfile.AccTaobaoShareId) if userProfile.AccJdCloudId == "" { userProfile.AccJdCloudId = userProfile.AccJdShareId