update 对接lianlian平台

This commit is contained in:
2024-05-08 18:55:11 +08:00
parent cbde1637d6
commit 7f342435fa
4 changed files with 20 additions and 12 deletions

View File

@@ -138,6 +138,11 @@ public class JWTUtils {
* @return
*/
public static boolean checkThirdPartyToken(String token) {
if (StringUtils.equals(token, "jsowellTest")) {
// 为了方便测试token为jsowellTest校验通过
return true;
}
token = getToken(token);
if (StringUtils.isBlank(token)) {
throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR);