全接口 需要登录
数据库线程池大小 获取提现规则
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.sqx.modules.common.controller.app;
|
package com.sqx.modules.common.controller.app;
|
||||||
|
|
||||||
import com.sqx.common.utils.Result;
|
import com.sqx.common.utils.Result;
|
||||||
|
import com.sqx.modules.app.annotation.Login;
|
||||||
import com.sqx.modules.common.service.CommonInfoService;
|
import com.sqx.modules.common.service.CommonInfoService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@@ -46,6 +47,7 @@ public class AppCommonController {
|
|||||||
" 20后台管理平台域名配置\n" +
|
" 20后台管理平台域名配置\n" +
|
||||||
" 22拼多多优惠券地址")
|
" 22拼多多优惠券地址")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@Login
|
||||||
public Result getCommonList(@PathVariable Integer type) {
|
public Result getCommonList(@PathVariable Integer type) {
|
||||||
return commonService.findByType(type);
|
return commonService.findByType(type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public class AppCourseController extends AbstractController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private RedisUtils redisUtils;
|
private RedisUtils redisUtils;
|
||||||
|
|
||||||
|
@Login
|
||||||
@GetMapping("/selectCourse")
|
@GetMapping("/selectCourse")
|
||||||
@ApiOperation("查询短剧信息")
|
@ApiOperation("查询短剧信息")
|
||||||
public Result selectCourse(@ApiParam("页") Integer page, @ApiParam("条") Integer limit, @ApiParam("分类id") Long classifyId,
|
public Result selectCourse(@ApiParam("页") Integer page, @ApiParam("条") Integer limit, @ApiParam("分类id") Long classifyId,
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public class AppMessageController {
|
|||||||
@RequestMapping(value = "/selectMessage", method = RequestMethod.GET)
|
@RequestMapping(value = "/selectMessage", method = RequestMethod.GET)
|
||||||
@ApiOperation("查询用户消息")
|
@ApiOperation("查询用户消息")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
@Login
|
||||||
public Result selectMessage(int page, int limit,Integer state){
|
public Result selectMessage(int page, int limit,Integer state){
|
||||||
Map<String,Object> map=new HashMap<>();
|
Map<String,Object> map=new HashMap<>();
|
||||||
map.put("page",page);
|
map.put("page",page);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public class WuyouPay {
|
|||||||
|
|
||||||
public static boolean checkCanCashByLimit(BigDecimal money) {
|
public static boolean checkCanCashByLimit(BigDecimal money) {
|
||||||
CommonInfo info = commonInfoService.findOne(923);
|
CommonInfo info = commonInfoService.findOne(923);
|
||||||
if (info == null || StrUtil.isNotBlank(info.getValue())) {
|
if (info == null || StrUtil.isBlank(info.getValue())) {
|
||||||
logger.warn("未配置提现限制,请联系管理员配置");
|
logger.warn("未配置提现限制,请联系管理员配置");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spring:
|
|||||||
username: video_user
|
username: video_user
|
||||||
password: VideoUser@1
|
password: VideoUser@1
|
||||||
initial-size: 10
|
initial-size: 10
|
||||||
max-active: 100
|
max-active: 50
|
||||||
min-idle: 10
|
min-idle: 10
|
||||||
max-wait: 60000
|
max-wait: 60000
|
||||||
pool-prepared-statements: true
|
pool-prepared-statements: true
|
||||||
|
|||||||
Reference in New Issue
Block a user