|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package com.dsideal.FengHuang.Yp.Controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.captcha.CaptchaUtil;
|
|
|
|
|
import cn.hutool.captcha.LineCaptcha;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.dsideal.FengHuang.Interceptor.EmptyInterface;
|
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsNumericInterface;
|
|
|
|
@ -19,7 +21,10 @@ import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
import com.jfinal.upload.UploadFile;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.ServletOutputStream;
|
|
|
|
|
import java.io.ByteArrayInputStream;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
@ -95,6 +100,7 @@ public class YpController extends Controller {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取任务信息
|
|
|
|
|
*
|
|
|
|
|
* @param task_id
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
@ -309,4 +315,23 @@ public class YpController extends Controller {
|
|
|
|
|
List<Record> list = model.getBx(task_id);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:获取验证码
|
|
|
|
|
调用方法:
|
|
|
|
|
<img title="点击刷新" class="captcha" src="/login/captcha" onclick="updateCaptcha();">
|
|
|
|
|
<script>
|
|
|
|
|
function updateCaptcha() {
|
|
|
|
|
$(".captcha").attr("src", "/FengHuang/yp/getYzm?v=" + Math.random());
|
|
|
|
|
$("#captchaInput").val("");
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
后台验证验证码是否正确
|
|
|
|
|
boolean result = validateCaptcha("inputRandomCode");//inputRandomCode是用户提交过来的验证码
|
|
|
|
|
*/
|
|
|
|
|
@Before(GET.class)
|
|
|
|
|
public void getYzm() {
|
|
|
|
|
renderCaptcha();
|
|
|
|
|
}
|
|
|
|
|
}
|