diff --git a/chain_transfer/svc/svc_turnchain.go b/chain_transfer/svc/svc_turnchain.go index 6d2c1b9..04d32d9 100644 --- a/chain_transfer/svc/svc_turnchain.go +++ b/chain_transfer/svc/svc_turnchain.go @@ -708,6 +708,12 @@ func FindTaobaoWord(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]str goodsParam["master_id"] = dbName userProfile, _ := db.UserProfileFindByID(eg, user.Uid) if userProfile != nil { + //新的渠道id 存储 + relation := db.GetTaobaoUserRelationByUid(eg, userProfile.Uid) + if relation != nil { + userProfile.AccTaobaoShareId = relation.RelationId + goodsParam["union_id"] = zhios_third_party_utils.IntToStr(relation.UnionId) + } goodsParam["acc_taobao_share_id"] = zhios_third_party_utils.Int64ToStr(userProfile.AccTaobaoShareId) if userProfile.AccJdCloudId == "" { userProfile.AccJdCloudId = userProfile.AccJdShareId @@ -945,6 +951,12 @@ func CheckKuaishouWord(eg *xorm.Engine, officialEg *xorm.Engine, dbName string, userProfile, _ := db.UserProfileFindByID(eg, user.Uid) args := make(map[string]string) if userProfile != nil { + //新的渠道id 存储 + relation := db.GetTaobaoUserRelationByUid(eg, userProfile.Uid) + if relation != nil { + userProfile.AccTaobaoShareId = relation.RelationId + args["union_id"] = zhios_third_party_utils.IntToStr(relation.UnionId) + } args["acc_taobao_share_id"] = zhios_third_party_utils.Int64ToStr(userProfile.AccTaobaoShareId) if userProfile.AccJdCloudId == "" { userProfile.AccJdCloudId = userProfile.AccJdShareId