修改查询列表的权限
This commit is contained in:
@@ -37,7 +37,7 @@ public class JobFairController extends BaseController
|
||||
* 查询招聘会信息列表
|
||||
*/
|
||||
@ApiOperation("查询招聘会信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('app:fair:list')")
|
||||
@PreAuthorize("@ss.hasPermi('jobfair:list:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(JobFair jobFair)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.stream.Collectors;
|
||||
public class StringUtil {
|
||||
|
||||
/*1101(求职者)、1102(招聘者)、1103(网格员)、1104(内部工作者)*/
|
||||
public static final Long COMPANY_ADMIN_ROLE_KEY = 1002L;
|
||||
public static final Long COMPANY_ADMIN_ROLE_KEY = 1102L;
|
||||
|
||||
/**
|
||||
* 企业用户
|
||||
|
||||
@@ -249,7 +249,7 @@ public class WechatUtil {
|
||||
try {
|
||||
System.out.println("appid==============="+appid);
|
||||
System.out.println("secret================"+secret);
|
||||
String response = getAccessData("https://api.weixin.qq.com/sns/jscode2session?appid="+appid+"&secret="+secret+"&js_code="+code+"&grant_type=authorization_code");
|
||||
String response = getAccessData("http://192.168.2.102:10044/weixin?appid="+appid+"&secret="+secret+"&js_code="+code+"&grant_type=authorization_code");
|
||||
JSONObject result = JSONObject.parseObject(response);
|
||||
// 微信返回错误码处理
|
||||
if (result.containsKey("errcode") && result.getInteger("errcode") != 0) {
|
||||
|
||||
@@ -68,7 +68,7 @@ public class UserConstants
|
||||
* 用户名长度限制
|
||||
*/
|
||||
public static final int USERNAME_MIN_LENGTH = 2;
|
||||
public static final int USERNAME_MAX_LENGTH = 20;
|
||||
public static final int USERNAME_MAX_LENGTH = 50;
|
||||
|
||||
/**
|
||||
* 密码长度限制
|
||||
|
||||
Reference in New Issue
Block a user