提交 73344003 作者: zhenjie

论坛审核通过发放积bug修复

上级 3f5e8ecc
package com.mmc.csf.release.feign; package com.mmc.csf.release.feign;
import com.mmc.csf.common.util.web.ResultBody;
import com.mmc.csf.infomation.dto.PilotCertificationInteriorDTO; import com.mmc.csf.infomation.dto.PilotCertificationInteriorDTO;
import com.mmc.csf.infomation.dto.UserAccountSimpleDTO; import com.mmc.csf.infomation.dto.UserAccountSimpleDTO;
import com.mmc.csf.release.auth.qo.BUserAccountQO; import com.mmc.csf.release.auth.qo.BUserAccountQO;
...@@ -72,5 +73,5 @@ public interface UserAppApi { ...@@ -72,5 +73,5 @@ public interface UserAppApi {
public PilotCertificationInteriorDTO feignInteriorDetailPilot(@RequestParam(required = true) Integer userAccountId); public PilotCertificationInteriorDTO feignInteriorDetailPilot(@RequestParam(required = true) Integer userAccountId);
@PostMapping("/userapp/userPoint/change") @PostMapping("/userapp/userPoint/change")
void changeUserPoint(@RequestBody ChangeUserPointVO changePoint, @RequestHeader("token") String token); public ResultBody changeUserPoint(@RequestBody ChangeUserPointVO changePoint, @RequestHeader("token") String token);
} }
package com.mmc.csf.release.feign.hystrix; package com.mmc.csf.release.feign.hystrix;
import com.alibaba.fastjson.JSONObject;
import com.mmc.csf.common.util.web.ResultBody;
import com.mmc.csf.common.util.web.ResultEnum;
import com.mmc.csf.infomation.dto.PilotCertificationInteriorDTO; import com.mmc.csf.infomation.dto.PilotCertificationInteriorDTO;
import com.mmc.csf.infomation.dto.UserAccountSimpleDTO; import com.mmc.csf.infomation.dto.UserAccountSimpleDTO;
import com.mmc.csf.release.auth.qo.BUserAccountQO; import com.mmc.csf.release.auth.qo.BUserAccountQO;
import com.mmc.csf.release.auth.qo.UserAccountQO; import com.mmc.csf.release.auth.qo.UserAccountQO;
import com.mmc.csf.release.feign.UserAppApi; import com.mmc.csf.release.feign.UserAppApi;
import com.mmc.csf.user.vo.ChangeUserPointVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.util.List; import java.util.List;
...@@ -44,4 +48,10 @@ public class UserAppApiHystrix implements UserAppApi { ...@@ -44,4 +48,10 @@ public class UserAppApiHystrix implements UserAppApi {
log.error("熔断:feignInteriorDetailPilot:{}", userAccountId); log.error("熔断:feignInteriorDetailPilot:{}", userAccountId);
return null; return null;
} }
@Override
public ResultBody changeUserPoint(ChangeUserPointVO changePoint, String token) {
log.error("发放积分 熔断:changeUserPoint:{}", JSONObject.toJSON(changePoint));
return ResultBody.error(ResultEnum.OPERATION_SYS_ERROR);
}
} }
...@@ -202,7 +202,7 @@ public class BackstageForumServiceImpl implements BackstageForumService { ...@@ -202,7 +202,7 @@ public class BackstageForumServiceImpl implements BackstageForumService {
dynamicDao.updateDiscussionCount(gambitDO.getId(),count); dynamicDao.updateDiscussionCount(gambitDO.getId(),count);
} }
ForumDynamicDO dynamicDO = dynamicDao.getDynamicInfoById(dynamicId); ForumDynamicDO dynamicDO = dynamicDao.getDynamicInfoById(dynamicId);
// 论坛通过发积分 // 论坛通过发积分,暂时先发5积分
ChangeUserPointVO changePoint = new ChangeUserPointVO(); ChangeUserPointVO changePoint = new ChangeUserPointVO();
changePoint.setUserAccountId(dynamicDO.getUserAccountId()); changePoint.setUserAccountId(dynamicDO.getUserAccountId());
changePoint.setChangeType(3); changePoint.setChangeType(3);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论