|
@@ -60,6 +60,9 @@ public class FdUserSceneController extends BaseController {
|
|
|
|
|
|
@GetMapping("/getTokenByNum")
|
|
|
public ResultData getTokenByNum(@RequestParam(required = false) String num ){
|
|
|
+ if(StringUtils.isEmpty(getUserName())){
|
|
|
+ throw new BusinessException(-1,"用户未登录,或token不合法!");
|
|
|
+ }
|
|
|
if(StringUtils.isEmpty(num)){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_3001);
|
|
|
}
|