|
|
@@ -16,7 +16,7 @@ func CommTik(eg *xorm.Engine, dbName, url string) map[string]string { |
|
|
|
commission := "" |
|
|
|
if strings.Contains(url, "ecommerce") { |
|
|
|
tikTokBase, _ := tik_tok.Base(eg, dbName, "") |
|
|
|
tikTokBase.ExtendTeamTokenMap = GetTikTokTeamTokenEg(eg, dbName, url) |
|
|
|
tikTokBase.ExtendTeamTokenMap = GetTikTokTeamTokenEg(eg, dbName, "") |
|
|
|
isSet := 0 |
|
|
|
for _, v1 := range tikTokBase.ExtendTeamTokenMap { |
|
|
|
if isSet == 1 { |
|
|
@@ -56,7 +56,7 @@ func GetTikTokTeamTokenEg(eg *xorm.Engine, dbName, url string) map[string]interf |
|
|
|
bizData := map[string]interface{}{ |
|
|
|
"mid": zhiosOpenSelectionLibraryMasterId, |
|
|
|
} |
|
|
|
returnData, err := OauthApiReqEg(eg, dbName, url, bizData, "inapi.selection_library.team_info_more", "1.0") |
|
|
|
returnData, err := OauthApiReqEg(eg, dbName, "http://127.0.0.1:5006", bizData, "inapi.selection_library.team_info_more", "1.0") |
|
|
|
if returnData == nil || err != nil { |
|
|
|
return tmp |
|
|
|
} |
|
|
|