release: 允许匿名分享

release-2024-04-25
huangyw 3 months ago
parent 56c1d9401a
commit 647ebfe6b7

@ -228,7 +228,6 @@ public class PointController {
@ApiOperation(value = "2.5.分享期刊(APP)", notes = "仅限app用户调用") @ApiOperation(value = "2.5.分享期刊(APP)", notes = "仅限app用户调用")
@PostMapping("/log/share/journal") @PostMapping("/log/share/journal")
@GlobalInterceptor(checkAppUserLogin = true)
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header"), @ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header"),
@ApiImplicitParam(name = "journalId", value = "期刊id", required = true, dataType = "String", paramType = "query") @ApiImplicitParam(name = "journalId", value = "期刊id", required = true, dataType = "String", paramType = "query")

@ -307,8 +307,10 @@ public class UserPointLogService {
* @param token token * @param token token
*/ */
public void shareJournal(String token) { public void shareJournal(String token) {
if (token != null) {
addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token); addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token);
} }
}
public UserInvitationLogVO getUserInvitationLog(String token) { public UserInvitationLogVO getUserInvitationLog(String token) {
UserLoginDto userLoginDto = jwtUtil.getUser(); UserLoginDto userLoginDto = jwtUtil.getUser();

Loading…
Cancel
Save