|
@@ -624,6 +624,13 @@ public class CoreServiceImpl implements CoreService {
|
|
|
//发表失败
|
|
|
if (pushStatusVO.getPublishStatus() == 3) {
|
|
|
updateStatus = 3;
|
|
|
+ if (StringUtils.isNotEmpty(pushStatusVO.getErrorCode())) {
|
|
|
+ int errorCode = Integer.parseInt(pushStatusVO.getErrorCode());
|
|
|
+ if (errorCode == 6 || errorCode == 7 || errorCode == 8 || errorCode == 999) {
|
|
|
+ updateStatus = 2;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
//发表成功
|
|
|
if (pushStatusVO.getPublishStatus() == 2) {
|
|
@@ -635,6 +642,9 @@ public class CoreServiceImpl implements CoreService {
|
|
|
PublishContentExample publishContentExample = new PublishContentExample();
|
|
|
publishContentExample.createCriteria().andPushIdEqualTo(pushId);
|
|
|
PublishContent update = new PublishContent();
|
|
|
+ if (StringUtils.isNotEmpty(pushStatusVO.getErrorMsg())) {
|
|
|
+ update.setReason(pushStatusVO.getErrorMsg());
|
|
|
+ }
|
|
|
update.setStatus(updateStatus);
|
|
|
publishContentMapper.updateByExampleSelective(update, publishContentExample);
|
|
|
|