Quellcode durchsuchen

修改随机码获取接口

haobing vor 2 Jahren
Ursprung
Commit
72b5802e85

+ 1 - 1
.gitignore

@@ -1,4 +1,4 @@
 .git/*
 .idea/*
 target/*
-service_api.iml
+provider-service.iml

+ 5 - 0
src/main/java/cn/aiyangniu/api/controller/other/OtherController.java

@@ -3,6 +3,8 @@ package cn.aiyangniu.api.controller.other;
 import cn.aiyangniu.api.common.util.AuthUtil;
 import cn.aiyangniu.api.common.util.RedisUtil;
 import com.alibaba.fastjson.JSONObject;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
@@ -21,6 +23,7 @@ import java.util.Map;
  * @since 2019-10-22
  */
 @RestController
+@Api(tags="常用的接口")
 @RequestMapping("/others")
 public class OtherController {
 
@@ -33,6 +36,7 @@ public class OtherController {
     /**
      * getSysTime 获取当前服务器系统时间
      */
+    @ApiOperation(value = "获取当前服务器系统时间")
     @RequestMapping(value="/getSysTime", method= RequestMethod.GET)
     public Map<String, Object> getSysTime(HttpServletRequest req) {
         Map<String, Object> result = new HashMap<>();
@@ -47,6 +51,7 @@ public class OtherController {
     /**
      * getSysRandom 获取随机数返回给前端,同时存储到缓冲数据库中
      */
+    @ApiOperation(value = "获取请求的随机码")
     @RequestMapping(value="/getSysRandom", method= RequestMethod.GET)
     public Map<String, Object> getSysRandom(HttpServletRequest req) {
         Map<String, Object> result = new HashMap<>();

+ 1 - 1
src/main/java/cn/aiyangniu/api/controller/system/SysAreaController.java

@@ -23,8 +23,8 @@ import java.util.Map;
  * @author Henry Hall
  * @since 2022-11-04
  */
-@Api(tags="地区选择接口")
 @RestController
+@Api(tags="地区选择接口")
 @RequestMapping("/sysArea")
 public class SysAreaController {
 

+ 1 - 1
src/main/java/cn/aiyangniu/api/controller/system/SysUserController.java

@@ -355,7 +355,7 @@ public class SysUserController {
      * @param req 请求对象
      * @return 返回结果Json串
      */
-    @ApiOperation(value = "获取用户下拉列表")
+    @ApiOperation(value = "用户登录")
     @RequestMapping(value="/login", method= RequestMethod.POST)
     @ApiImplicitParam(name = "usrVo", value = "用户登录的对象", paramType = "query", dataType="SysUserVo", dataTypeClass = SysUserVo.class)
     public Map<String, Object> loginUser(@RequestBody SysUserVo usrVo,  HttpServletRequest req) {

+ 5 - 5
src/main/resources/application-pro.yml

@@ -8,7 +8,8 @@ server:
     encoding:
       force: true
 
-file-path: /datas/web/common/upfiles/
+#file-path: E:\data\apps\provider-service\file
+file-path: /data/apps/provider-service/file
 root-path: http://127.0.0.1/common/upfiles/
 
 #Jing Tai Zi Yuan Fang Wen Lu Jing
@@ -18,9 +19,9 @@ spring:
     name: druidDataSource
     type: com.alibaba.druid.pool.DruidDataSource
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://127.0.0.1:3306/ubt_db_api?useUnicode=true&serverTimezone=PRC&characterEncoding=UTF-8
+    url: jdbc:mysql://mysql.aiyangniu.net:3306/ayn_db_provider?useUnicode=true&useSSL=false&serverTimezone=PRC&characterEncoding=UTF-8
     username: root
-    password: 01235689@Hh
+    password: 123456
 
     druid:
       filters: stat
@@ -70,9 +71,8 @@ spring:
 
   # redis
   redis:
-    host: 119.3.220.7
+    host: redis.aiyangniu.net
     port: 6379
-    password: 3T%UPCd2pRyP
     database: 1
     timeout: 10000
     jedis:

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

@@ -1,7 +1,7 @@
 #Jing Tai Zi Yuan Fang Wen Lu Jing
 spring:
   profiles:
-    active: '@env@'
+    active: "@env@"
   servlet:
     #上传文件的路径
     multipart: