Prechádzať zdrojové kódy

头条上传失败打印日志

yumeng 4 rokov pred
rodič
commit
bf379ab904

+ 2 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/impl/FileInfoServiceImpl.java

@@ -71,13 +71,14 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
                 if (code == 0) {
                     log.info("头条上传素材成功,返回信息:{},accountId:{}", jsonObject, accountId);
                 } else {
+                    log.error("头条上传素材失败,返回信息:{},accountId:{}", jsonObject, accountId);
                     UserAllocation allocation = userAllocationService.getByAccountId(Long.valueOf(accountId));
                     String message = messageTemplate.getMaterialSyncTemplate(allocation.getProjectName(), Long.valueOf(accountId), allocation.getAuthName(), materialName, jsonObject.getString("message"));
                     sendMessageService.sendMessage(userId, message);
                 }
 
             }else{
-                log.info("头条上传素材f返回结果为空,返回信息:{},accountId:{}", jsonObject, accountId);
+                log.info("头条上传素材返回结果为空,返回信息:{},accountId:{}", jsonObject, accountId);
             }