作者 shenhailong

设置验证码 请求路径 解决 验证码点击 失效的问题

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
<component name="WebServicesPlugin" addRequiredLibraries="true" />
</project>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
... ...
... ... @@ -2554,15 +2554,12 @@ public class ManifestController extends BasicController {
// 卸货地代码
manifestEntity.setDestinationstation(arr.get(7));
// 货物装载运输时间
SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyyMMddHHmmss");
manifestEntity.setStowagedate(simpleDateFormat1.parse(arr.get(8)));
manifestEntity.setStowagedate(new Date());
// 海关关区代码
manifestEntity.setCustomscode(arr.get(9));
// 货物件数
// String s3 = arr.get(11);
manifestEntity.setTotalpiece(arr.get(10));
// 货物毛重
// String s1 = arr.get(12);
manifestEntity.setTotalweight(arr.get(11));
// 货物简要描述
manifestEntity.setProductname(arr.get(12));
... ...
... ... @@ -157,8 +157,6 @@ public class LoginController {
ResponseModel rm = new ResponseModel(200, "", null);
// 查询该账号是否被禁用
String rand = session.getAttribute("rand").toString();
UserEntity userEntity = userService.findLoginaccount(loginAccount);
... ...
... ... @@ -29,7 +29,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div style="margin-top: 10px;">
<input class="verifyInputs" style="float: left; width: 191px; height: 26px; line-height: 35px; margin-left: 0px; padding: 5px;" name="verifyInput" id="verifyInput" placeholder="请输入验证码">
<img class="verifyCodes" style="float: left; width: 202px; height: 37px; line-height: 35px; margin-left: 11px; padding: 5px; margin-top: -5px;" onclick="changeCode()" src="/agent/getVerifyCode">
<img class="verifyCodes" style="float: left; width: 202px; height: 37px; line-height: 35px; margin-left: 11px; padding: 5px; margin-top: -5px;" onclick="changeCode()" src="<%=basePath %>agent/getVerifyCode">
</div>
... ... @@ -152,7 +152,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
function changeCode() {
var src = "getVerifyCode?"+new Date().getTime(); //加时间戳,防止浏览器利用缓存
var src = "<%=basePath %>agent/getVerifyCode?"+new Date().getTime(); //加时间戳,防止浏览器利用缓存
$('.verifyCodes').attr("src",src);
}
... ...