|
@@ -653,13 +653,18 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ } finally {
|
|
|
//账号登出
|
|
|
System.out.println("账号登出");
|
|
|
String logoutUrl = "https://ad.oceanengine.com/sso_logout/";
|
|
|
webDriver.get(logoutUrl);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- } finally {
|
|
|
+ try {
|
|
|
+ Thread.sleep(3000L);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
//清除所有的缓存
|
|
|
webDriver.manage().deleteAllCookies();
|
|
|
webDriver.close();
|