if(loginname==null||"".equals(loginname.trim())){
String json = "{\"status\":\"0\",\"message\":\"��ֹ��������Ӧ�����ʺ�!\",\"result\":\"{��ֹ��������Ӧ�����ʺ�!}\"}";
return new TextRenderer(json);
}
MainUserService service = new MainUserServiceImpl();
int ret= 0;
try {
if (approve.equals("1")) {
ret = service.enableMainUser(loginname);
} else if (approve.equals("0")) {
ret = service.disabledMainUser(loginname);
}
} catch (ServiceException e) {
String json = "{\"status\":\"0\",\"message\":\"�����û�ʧ��!\",\"result\":\""+e.getMessage()+"\"}";
return new TextRenderer(json);
}