|
@@ -708,6 +708,12 @@ func FindTaobaoWord(eg *xorm.Engine, officialEg *xorm.Engine, tmp map[string]str |
|
|
goodsParam["master_id"] = dbName |
|
|
goodsParam["master_id"] = dbName |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
if userProfile != nil { |
|
|
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) |
|
|
goodsParam["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 |
|
@@ -945,6 +951,12 @@ func CheckKuaishouWord(eg *xorm.Engine, officialEg *xorm.Engine, dbName string, |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
userProfile, _ := db.UserProfileFindByID(eg, user.Uid) |
|
|
args := make(map[string]string) |
|
|
args := make(map[string]string) |
|
|
if userProfile != nil { |
|
|
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) |
|
|
args["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 |
|
|