Browse Source

修改线上配置

xuzuoyun 5 năm trước cách đây
mục cha
commit
d17faf8375

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/config/ShiroConfig.java

@@ -72,7 +72,7 @@ public class ShiroConfig {
 		filterChainDefinitionMap.put("/swagger**/**", "anon");
 		filterChainDefinitionMap.put("/webjars/**", "anon");
 		filterChainDefinitionMap.put("/v2/**", "anon");
-		filterChainDefinitionMap.put("/kuaishou/**", "anon");
+        filterChainDefinitionMap.put("/kuaishou", "anon");
 		filterChainDefinitionMap.put("/ctop/bindAccount/**", "anon");
 		filterChainDefinitionMap.put("/**/*.mp4", "anon");
 
@@ -88,7 +88,7 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/auth/**", "anon");
 		filterChainDefinitionMap.put("/ctop/syncdata/**", "anon");
 		//头条接口
-		filterChainDefinitionMap.put("/kuaishou", "anon");
+        filterChainDefinitionMap.put("/bytedance", "anon");
 		filterChainDefinitionMap.put("/toutiao/dictitem/list", "anon");
 		filterChainDefinitionMap.put("/toutiao/advertiser/**", "anon");
         filterChainDefinitionMap.put("/toutiao/industry/list", "anon");

+ 0 - 4
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/CreateInternalServiceImpl.java

@@ -146,10 +146,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                     ck.setPath(cookie.getPath());
                     HttpUtils.cookieStore.addCookie(ck);
                 }
-//                String siteStr = HttpUtils.httpGetRequest("https://ad.oceanengine.com/overture/api/adv_site/get_site_list/?_="+String.valueOf(new Date().getTime()));
-//                String convStr = HttpUtils.httpGetRequest("https://ad.oceanengine.com/overture/api/get_tetris_action/?external_url=&type=external&pricing=9&landing_type=3&_="+String.valueOf(new Date().getTime()));
-//                JsonNode siteNode = mapper.readTree(siteStr);
-//                JsonNode convNode = mapper.readTree(convStr);
 
                 Map<String, Object> param4 = new HashMap<String, Object>();
                 param4.put("location_type", 4);

+ 2 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/service/impl/KuaishouWebInterfaceServiceImpl.java

@@ -187,8 +187,8 @@ public class KuaishouWebInterfaceServiceImpl implements IKuaishouWebInterfaceSer
     }
 
     public void adkuaishouWebLogin(String phone, String password) {
-        System.getProperties().setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
-//        System.getProperties().setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
+//        System.getProperties().setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
+        System.getProperties().setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver");
         ChromeOptions chromeOptions = new ChromeOptions();
         WebDriver webDriver = new ChromeDriver(chromeOptions);
         try {

+ 2 - 1
module-toutiao/src/main/resources/bytedance_config.properties

@@ -7,7 +7,8 @@ bytedance_auth_url=https://ad.toutiao.com/openapi
 #sandbox
 #bytedance_api_url=https://test-ad.toutiao.com/open_api
 #bytedance_auth_url=https://test-ad.toutiao.com/open_api
-bytedance_callback_url=http://callback.c-top.com.cn/bytedance
+#bytedance_callback_url=http://callback.c-top.com.cn/bytedance
+bytedance_callback_url=http://adsp.c-top.com.cn:8080/jeecg-boot/bytedance
 bytedance_v2_advertiser_info=/2/advertiser/info
 bytedance_v2_ad_get=/2/ad/get
 bytedance_v2_ad_create=/2/ad/create/