|
@@ -38,6 +38,14 @@ func TurnChainFeatures(eg *xorm.Engine, tikTokBase map[string]string, user *mode |
|
|
) |
|
|
) |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
if userProfile != nil { |
|
|
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) |
|
|
tikTokBase["acc_taobao_share_id"] = zhios_third_party_utils.Int64ToStr(userProfile.AccTaobaoShareId) |
|
|
if userProfile.AccJdCloudId == "" { |
|
|
if userProfile.AccJdCloudId == "" { |
|
|
userProfile.AccJdCloudId = userProfile.AccJdShareId |
|
|
userProfile.AccJdCloudId = userProfile.AccJdShareId |
|
|