|
@@ -133,10 +133,13 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
|
|
|
e.printStackTrace();
|
|
|
ResultMapUtils.setResultMap(resultMap, StatusCode.COMMON_SERVER_ERROR.getCode());
|
|
|
} finally {
|
|
|
+ //获得cookie
|
|
|
+ Set<Cookie> coo = webDriver.manage().getCookies();
|
|
|
+ //清除所有的缓存
|
|
|
+ webDriver.manage().deleteAllCookies();
|
|
|
webDriver.quit();
|
|
|
return resultMap;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
@Override
|
|
|
public Map<String, Object> createInternal(JSONObject requestJson) {
|
|
@@ -362,6 +365,10 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
} finally {
|
|
|
+ //获得cookie
|
|
|
+ Set<Cookie> coo = webDriver.manage().getCookies();
|
|
|
+ //清除所有的缓存
|
|
|
+ webDriver.manage().deleteAllCookies();
|
|
|
webDriver.quit();
|
|
|
}
|
|
|
ResultMapUtils.setResultMap(resultMap, StatusCode.COMMON_SUCCESS.getCode());
|