增加日志

parent f602bce4
......@@ -365,6 +365,7 @@ public class InnerController implements IBaseController {
return JsonResult.buildErrorStateResult(null, null);
}
if (userId == null) {
LOGGER.info("用户ID不能为空");
return JsonResult.buildErrorStateResult(null, null);
}
List<Contact> userContact = contactService.findByUserId(userId);
......@@ -374,6 +375,7 @@ public class InnerController implements IBaseController {
List<Contact> contacts = JSONObject.parseObject(contactsStr, new TypeReference<List<Contact>>() {
});
if (CollectionUtils.isEmpty(contacts)) {
LOGGER.info("联系人不能空");
return JsonResult.buildErrorStateResult(null, null);
}
for(Contact contact:contacts){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment