From 2cb90db83f7f59f04a91cf483fd8e6630176699c Mon Sep 17 00:00:00 2001 From: zhizhi wu <2377881365@qq.com> Date: Fri, 16 Apr 2021 18:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bjyy/controller/MentalController.java | 46 +++++++++--------- .../bjyy/service/impl/AccountServiceImpl.java | 7 ++- .../src/main/webapp/static/exam1/test21.html | 5 +- .../src/main/webapp/static/exam2/test21.html | 5 +- .../src/main/webapp/static/exam3/test21.html | 5 +- .../src/main/webapp/static/exam4/test21.html | 5 +- .../src/main/webapp/static/images/aa.png | Bin 266242 -> 1261360 bytes .../src/main/webapp/static/train/1.1.1.jpg | Bin 29022 -> 95107 bytes .../src/main/webapp/static/train/1.11.1.jpg | Bin 0 -> 28446 bytes .../src/main/webapp/static/train/1.12.1.jpg | Bin 0 -> 10425 bytes .../src/main/webapp/static/train/1.13.1.jpg | Bin 0 -> 50406 bytes .../src/main/webapp/static/train/1.14.1.jpg | Bin 0 -> 29510 bytes .../src/main/webapp/static/train/1.15.1.jpg | Bin 28867 -> 33880 bytes .../src/main/webapp/static/train/1.16.1.jpg | Bin 0 -> 41142 bytes .../src/main/webapp/static/train/1.17.1.jpg | Bin 0 -> 9216 bytes .../src/main/webapp/static/train/1.18.1.jpg | Bin 0 -> 9216 bytes .../src/main/webapp/static/train/1.2.1.jpg | Bin 32391 -> 115384 bytes .../src/main/webapp/static/train/1.21.1.jpg | Bin 0 -> 16397 bytes .../src/main/webapp/static/train/1.22.1.jpg | Bin 0 -> 12439 bytes .../src/main/webapp/static/train/1.23.1.jpg | Bin 0 -> 9523 bytes .../src/main/webapp/static/train/1.24.1.jpg | Bin 0 -> 12439 bytes .../src/main/webapp/static/train/1.25.1.jpg | Bin 0 -> 9216 bytes .../src/main/webapp/static/train/1.26.1.jpg | Bin 0 -> 17107 bytes .../src/main/webapp/static/train/1.27.1.jpg | Bin 0 -> 38320 bytes .../src/main/webapp/static/train/1.29.1.jpg | Bin 0 -> 9523 bytes .../src/main/webapp/static/train/1.3.1.jpg | Bin 0 -> 28015 bytes .../src/main/webapp/static/train/1.30.1.jpg | Bin 0 -> 12439 bytes .../src/main/webapp/static/train/1.31.1.jpg | Bin 0 -> 31624 bytes .../src/main/webapp/static/train/1.32.1.jpg | Bin 0 -> 12439 bytes .../src/main/webapp/static/train/1.33.1.jpg | Bin 0 -> 12439 bytes .../src/main/webapp/static/train/1.5.1.jpg | Bin 0 -> 37212 bytes .../src/main/webapp/static/train/1.6.1.jpg | Bin 0 -> 10102 bytes .../src/main/webapp/static/train/1.7.1.jpg | Bin 16808 -> 34775 bytes .../src/main/webapp/static/train/1.8.1.jpg | Bin 0 -> 33482 bytes .../src/main/webapp/static/train/1.9.1.jpg | Bin 0 -> 18552 bytes .../src/main/webapp/static/train/10.10.1.jpg | Bin 61945 -> 7674 bytes .../src/main/webapp/static/train/10.13.1.jpg | Bin 0 -> 35837 bytes .../src/main/webapp/static/train/10.13.2.jpg | Bin 0 -> 36737 bytes .../src/main/webapp/static/train/10.13.3.jpg | Bin 0 -> 42834 bytes .../src/main/webapp/static/train/10.13.4.jpg | Bin 0 -> 36099 bytes .../src/main/webapp/static/train/10.13.5.jpg | Bin 0 -> 42195 bytes .../src/main/webapp/static/train/10.15.1.jpg | Bin 0 -> 35837 bytes .../src/main/webapp/static/train/10.15.2.jpg | Bin 0 -> 36737 bytes .../src/main/webapp/static/train/10.15.3.jpg | Bin 0 -> 36434 bytes .../src/main/webapp/static/train/10.15.4.jpg | Bin 0 -> 44466 bytes .../src/main/webapp/static/train/10.15.5.jpg | Bin 0 -> 45134 bytes .../src/main/webapp/static/train/10.5.1.jpg | Bin 61945 -> 7674 bytes .../src/main/webapp/static/train/10.9.1.jpg | Bin 0 -> 27318 bytes .../src/main/webapp/static/train/2.1.1.jpg | Bin 0 -> 27168 bytes .../src/main/webapp/static/train/2.2.1.jpg | Bin 0 -> 7086 bytes .../src/main/webapp/static/train/4.2.1.jpg | Bin 0 -> 10663 bytes .../src/main/webapp/static/train/6.1.1.jpg | Bin 71949 -> 30834 bytes .../src/main/webapp/static/train/6.1.2.jpg | Bin 69925 -> 28524 bytes .../src/main/webapp/static/train/6.2.1.jpg | Bin 71949 -> 30834 bytes .../src/main/webapp/static/train/6.2.2.jpg | Bin 69925 -> 28524 bytes .../src/main/webapp/static/train/6.3.1.jpg | Bin 74358 -> 21797 bytes .../src/main/webapp/static/train/6.3.2.jpg | Bin 49568 -> 30249 bytes .../src/main/webapp/static/train/6.3.3.jpg | Bin 63806 -> 28099 bytes .../src/main/webapp/static/train/6.3.4.jpg | Bin 70035 -> 28752 bytes .../src/main/webapp/static/train/6.3.5.jpg | Bin 68986 -> 6725 bytes .../src/main/webapp/static/train/6.4.1..jpg | Bin 74358 -> 0 bytes .../src/main/webapp/static/train/6.4.1.jpg | Bin 0 -> 21797 bytes .../src/main/webapp/static/train/6.4.2.jpg | Bin 49568 -> 30249 bytes .../src/main/webapp/static/train/6.4.3.jpg | Bin 63806 -> 28099 bytes .../src/main/webapp/static/train/6.4.4.jpg | Bin 70035 -> 28752 bytes .../src/main/webapp/static/train/6.4.5.jpg | Bin 68986 -> 6725 bytes .../src/main/webapp/static/train/7.1.1.jpg | Bin 47597 -> 16139 bytes .../src/main/webapp/static/train/7.1.2.jpg | Bin 136135 -> 39751 bytes .../src/main/webapp/static/train/7.2.1.jpg | Bin 47597 -> 16139 bytes .../src/main/webapp/static/train/7.2.2.jpg | Bin 136135 -> 39751 bytes .../src/main/webapp/static/train/7.3.1.jpg | Bin 128699 -> 162754 bytes .../src/main/webapp/static/train/7.3.2.jpg | Bin 118313 -> 136231 bytes .../src/main/webapp/static/train/7.3.3.jpg | Bin 32334 -> 58711 bytes .../src/main/webapp/static/train/7.3.4.jpg | Bin 100537 -> 146283 bytes .../src/main/webapp/static/train/7.3.5.jpg | Bin 100217 -> 137337 bytes .../src/main/webapp/static/train/7.4.1.jpg | Bin 128699 -> 162754 bytes .../src/main/webapp/static/train/7.4.2.jpg | Bin 118313 -> 136231 bytes .../src/main/webapp/static/train/7.4.3.jpg | Bin 32334 -> 58711 bytes .../src/main/webapp/static/train/7.4.4.jpg | Bin 100537 -> 146283 bytes .../src/main/webapp/static/train/7.4.5.jpg | Bin 100217 -> 137337 bytes .../src/main/webapp/static/train/7.5.1.jpg | Bin 196526 -> 55131 bytes .../src/main/webapp/static/train/7.5.2.jpg | Bin 172781 -> 48057 bytes .../src/main/webapp/static/train/7.5.3.jpg | Bin 135463 -> 82130 bytes .../src/main/webapp/static/train/8.1.1.jpg | Bin 0 -> 48759 bytes .../src/main/webapp/static/train/8.10.1.jpg | Bin 0 -> 25724 bytes .../src/main/webapp/static/train/8.2.1.jpg | Bin 0 -> 20320 bytes .../src/main/webapp/static/train/8.4.1.jpg | Bin 0 -> 28793 bytes .../src/main/webapp/static/train/8.4.3.jpg | Bin 0 -> 29876 bytes .../src/main/webapp/static/train/8.6.1.jpg | Bin 19192 -> 41752 bytes .../src/main/webapp/static/train/8.7.1.jpg | Bin 23115 -> 22522 bytes .../src/main/webapp/static/train/8.8.1.jpg | Bin 20654 -> 13507 bytes .../src/main/webapp/static/train/8.9.1.jpg | Bin 21752 -> 60665 bytes .../src/main/webapp/static/train/9.1.1.jpg | Bin 0 -> 12793 bytes .../src/main/webapp/static/train/9.2.1.jpg | Bin 0 -> 13449 bytes 94 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.11.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.12.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.13.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.14.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.16.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.17.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.18.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.21.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.22.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.23.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.24.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.25.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.26.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.27.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.29.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.3.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.30.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.31.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.32.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.33.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.5.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.6.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.8.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/1.9.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.13.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.13.2.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.13.3.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.13.4.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.13.5.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.15.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.15.2.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.15.3.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.15.4.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.15.5.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/10.9.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/2.1.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/2.2.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/4.2.1.jpg delete mode 100644 bjyy-weixin/src/main/webapp/static/train/6.4.1..jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/6.4.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/8.1.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/8.10.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/8.2.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/8.4.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/8.4.3.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/9.1.1.jpg create mode 100644 bjyy-weixin/src/main/webapp/static/train/9.2.1.jpg diff --git a/bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/MentalController.java b/bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/MentalController.java index e9e05a1..b74f57d 100644 --- a/bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/MentalController.java +++ b/bjyy-weixin/src/main/java/com/wmeimob/bjyy/controller/MentalController.java @@ -113,33 +113,33 @@ public class MentalController extends BaseController { String openId = SessionUtil.getValue(SessionUtil.SESSION_WX_OPENID); User user = RedisUtil.getObject(RedisUtil.PREFIX_USER_INFO + openId); //查找最新记录,判断是否已满2个星期 - MentalTest queryMentalRecord = mentalService.queryMentalRecordNewest(user.getId()); - if (null != queryMentalRecord) { -// Date monthSpace = DateUtil.getMonthSpace(-2);//当前时间的两个月前的时间 - Date monthSpace = DateUtil.getDate(-14, new Date()); - if (queryMentalRecord.getCreateAt().getTime() < monthSpace.getTime()) { -// ArrayList arl=new ArrayList(); -// arl.add(1); -// arl.add(2); -// arl.add(3); - result.setCode(0); - //选择测评试卷(选择最新的两条记录) -// List queryMentalRecordTop=mentalService.queryMentalRecordTop(user.getId()); -// for (MentalTest mentalTest : queryMentalRecordTop) { -// arl.remove(mentalTest.getFromType()-1); -// } - result.setData(new Random().nextInt(4) + 1); - log.info("已满14天。再次做题。题目类型是" + result.getData()); - } else { - result.setCode(-1); - log.info("未满14天。题目类型是" + result.getData()); - } - } else { +// MentalTest queryMentalRecord = mentalService.queryMentalRecordNewest(user.getId()); +// if (null != queryMentalRecord) { +//// Date monthSpace = DateUtil.getMonthSpace(-2);//当前时间的两个月前的时间 +// Date monthSpace = DateUtil.getDate(-14, new Date()); +// if (queryMentalRecord.getCreateAt().getTime() < monthSpace.getTime()) { +//// ArrayList arl=new ArrayList(); +//// arl.add(1); +//// arl.add(2); +//// arl.add(3); +// result.setCode(0); +// //选择测评试卷(选择最新的两条记录) +//// List queryMentalRecordTop=mentalService.queryMentalRecordTop(user.getId()); +//// for (MentalTest mentalTest : queryMentalRecordTop) { +//// arl.remove(mentalTest.getFromType()-1); +//// } +// result.setData(new Random().nextInt(4) + 1); +// log.info("已满14天。再次做题。题目类型是" + result.getData()); +// } else { +// result.setCode(-1); +// log.info("未满14天。题目类型是" + result.getData()); +// } +// } else { result.setCode(0); //选择测评试卷 int nextInt = new Random().nextInt(3); result.setData(nextInt + 1); - } +// } log.info("开始测评返回" + result); return result; } diff --git a/bjyy-weixin/src/main/java/com/wmeimob/bjyy/service/impl/AccountServiceImpl.java b/bjyy-weixin/src/main/java/com/wmeimob/bjyy/service/impl/AccountServiceImpl.java index ba4f9af..3101dc6 100644 --- a/bjyy-weixin/src/main/java/com/wmeimob/bjyy/service/impl/AccountServiceImpl.java +++ b/bjyy-weixin/src/main/java/com/wmeimob/bjyy/service/impl/AccountServiceImpl.java @@ -3,6 +3,7 @@ package com.wmeimob.bjyy.service.impl; import java.util.Date; import java.util.UUID; +import com.wmeimob.bjyy.util.SmsTxUtil; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -43,8 +44,10 @@ public class AccountServiceImpl implements AccountService { try { String code = CodeUtil.getNumberCode(4); // String code="1234"; - RedisUtil.setValue(RedisUtil.PREFIX_MOBILE_CODE + mobile, code); - SmsUtil.send(mobile,code); + int second = 600; + + RedisUtil.setValue(RedisUtil.PREFIX_MOBILE_CODE + mobile, code, second); + SmsTxUtil.sendSms(mobile, code, second); log.debug("#########AccountServiceImpl sendCode#########" + mobile + ":" + code); result.setCode(0); } catch (Exception e) { diff --git a/bjyy-weixin/src/main/webapp/static/exam1/test21.html b/bjyy-weixin/src/main/webapp/static/exam1/test21.html index 11e35ae..734fb77 100644 --- a/bjyy-weixin/src/main/webapp/static/exam1/test21.html +++ b/bjyy-weixin/src/main/webapp/static/exam1/test21.html @@ -30,9 +30,10 @@
-

21.下图的时间,经过6个小时,应该到几点?对应的是哪副图?

+

21.下图的时间,经过6个小时,应该到几点?对应的是哪副图?

-
    +
    +
    • diff --git a/bjyy-weixin/src/main/webapp/static/exam2/test21.html b/bjyy-weixin/src/main/webapp/static/exam2/test21.html index 86b733a..412b507 100644 --- a/bjyy-weixin/src/main/webapp/static/exam2/test21.html +++ b/bjyy-weixin/src/main/webapp/static/exam2/test21.html @@ -30,9 +30,10 @@
-

21.下图的时间,经过3个小时,应该到几点?对应的是哪副图?

+

21.下图的时间,经过3个小时,应该到几点?对应的是哪副图?

-
    +
    +
    • diff --git a/bjyy-weixin/src/main/webapp/static/exam3/test21.html b/bjyy-weixin/src/main/webapp/static/exam3/test21.html index ccea19e..bc740dc 100644 --- a/bjyy-weixin/src/main/webapp/static/exam3/test21.html +++ b/bjyy-weixin/src/main/webapp/static/exam3/test21.html @@ -30,9 +30,10 @@
-

21.下图的时间,经过4个半小时,应该到几点?对应的是哪副图?

+

21.下图的时间,经过4个半小时,应该到几点?对应的是哪副图?

-
    +
    +
    • diff --git a/bjyy-weixin/src/main/webapp/static/exam4/test21.html b/bjyy-weixin/src/main/webapp/static/exam4/test21.html index ef6b332..d68cb6e 100644 --- a/bjyy-weixin/src/main/webapp/static/exam4/test21.html +++ b/bjyy-weixin/src/main/webapp/static/exam4/test21.html @@ -30,9 +30,10 @@
-

21.下图的时间,经过2个小时,应该到几点?对应的是哪副图?

+

21.下图的时间,经过2个小时,应该到几点?对应的是哪副图?

-