Browse Source

小程序列表暂时看全国志愿者,暂时关闭交易,登录有效为1天

wangwl 3 months ago
parent
commit
1201d700f0

+ 1 - 1
leromro-admin/src/main/resources/application.yml

@@ -121,7 +121,7 @@ token:
   # 令牌密钥
   secret: abcdefghijklmnopqrstuvwxyz
   # 令牌有效期(默认30分钟)
-  expireTime: 30
+  expireTime: 1200
 
 mybatis-plus:
   #扫描mapper文件所在位置

+ 3 - 0
leromro-core/src/main/java/com/leromro/core/service/impl/MainOrderServiceImpl.java

@@ -107,6 +107,9 @@ public class MainOrderServiceImpl extends ServiceImpl<MainOrdersMapper, MainOrde
     @Override
     @Transactional(rollbackFor = Exception.class)
     public R<OrderPaymentVO> createOrders(OrderRequestDTO orderRequest) throws Exception {
+        if (1==1) {
+            return R.fail("当前地区志愿者批量认证中,暂时关闭预约功能,请谅解");
+        }
         //响应数据
         OrderPaymentVO vo = new OrderPaymentVO();
         //订单信息

+ 3 - 3
leromro-core/src/main/resources/mapper/core/VolunteerInfoMapper.xml

@@ -65,9 +65,9 @@
         <if test="info.score != null "> and lvi.score = #{info.score}</if>
         <if test="info.serviceCategory != null and info.serviceCategory != ''"> and lvi.service_category = #{info.serviceCategory}</if>
         <if test="info.skillDescribe != null  and info.skillDescribe != ''"> and lvi.skill_describe = #{info.skillDescribe}</if>
-        <if test="info.provinceCode != null and info.provinceCode != ''">and lvi.province_code = #{info.provinceCode}</if>
-        <if test="info.cityCode != null and info.cityCode != ''">and lvi.city_code = #{info.cityCode}</if>
-        <if test="info.districtCode != null and info.districtCode != ''">and lvi.district_code = #{info.districtCode}</if>
+<!--        <if test="info.provinceCode != null and info.provinceCode != ''">and lvi.province_code = #{info.provinceCode}</if>-->
+<!--        <if test="info.cityCode != null and info.cityCode != ''">and lvi.city_code = #{info.cityCode}</if>-->
+<!--        <if test="info.districtCode != null and info.districtCode != ''">and lvi.district_code = #{info.districtCode}</if>-->
     </select>
 
     <select id="getCurrentOrgVolunteerList" resultType="com.leromro.core.domain.VolunteerInfo">

+ 2 - 2
leromro-framework/src/main/java/com/leromro/framework/web/service/TokenService.java

@@ -50,7 +50,7 @@ public class TokenService
 
     protected static final long MILLIS_MINUTE = 60 * MILLIS_SECOND;
 
-    private static final Long MILLIS_MINUTE_TWENTY = 20 * 60 * 1000L;
+    private static final Long MILLIS_MINUTE_TWENTY = 2 * 60 * 60 * 1000L;
 
     @Autowired
     private RedisCache redisCache;
@@ -132,7 +132,7 @@ public class TokenService
     }
 
     /**
-     * 验证令牌有效期,相差不足20分钟,自动刷新缓存
+     * 验证令牌有效期,相差不足2小时,自动刷新缓存
      * 
      * @param loginUser 登录信息
      * @return 令牌