Bladeren bron

更新

master
huangjiajun 9 maanden geleden
bovenliggende
commit
caef084ea9
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. +12
    -0
      chain_transfer/svc/svc_turnchain.go

+ 12
- 0
chain_transfer/svc/svc_turnchain.go Bestand weergeven

@@ -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


Laden…
Annuleren
Opslaan