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,7 +307,9 @@ public class UserPointLogService {
* @param token token * @param token token
*/ */
public void shareJournal(String token) { public void shareJournal(String token) {
addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token); if (token != null) {
addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token);
}
} }
public UserInvitationLogVO getUserInvitationLog(String token) { public UserInvitationLogVO getUserInvitationLog(String token) {

Loading…
Cancel
Save