anderx пре 7 година
родитељ
комит
b524185711
1 измењених фајлова са 4 додато и 8 уклоњено
  1. 4 8
      src/main/java/com/goafanti/app/controller/AppUserController.java

+ 4 - 8
src/main/java/com/goafanti/app/controller/AppUserController.java

@@ -28,13 +28,9 @@ import com.goafanti.common.bo.Result;
 import com.goafanti.common.constant.AFTConstants;
 import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.constant.PageConstants;
-import com.goafanti.common.controller.BaseApiController;
 import com.goafanti.common.controller.CertifyApiController;
-import com.goafanti.common.enums.AchievementAuditStatus;
 import com.goafanti.common.enums.AchievementFields;
 import com.goafanti.common.enums.AttachmentType;
-import com.goafanti.common.enums.DemandAuditStatus;
-import com.goafanti.common.enums.DemandDataCategory;
 import com.goafanti.common.enums.DemandFields;
 import com.goafanti.common.model.Achievement;
 import com.goafanti.common.model.Demand;
@@ -830,10 +826,10 @@ public class AppUserController extends CertifyApiController {
 	@RequestMapping(value="/applistMessage",method=RequestMethod.GET)
 	public Result applistMessage(Integer pageNo,Integer pageSize){
 		Result result=new Result();
-//		if(StringUtils.isBlank(TokenManager.getUserId())) {
-//			result.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "当前用户未登陆"));
-//			return result;
-//		}
+		if(StringUtils.isBlank(TokenManager.getUserId())) {
+			result.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "当前用户未登陆"));
+			return result;
+		}
 		result.setData(messageService.applistMessage(pageNo,pageSize));
 		return result;
 	}