|
@@ -6,6 +6,8 @@ import java.util.Date;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
+import cn.com.qmth.stmms.biz.config.model.SystemAuth;
|
|
|
+import cn.com.qmth.stmms.biz.config.service.SystemAuthService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -82,6 +84,9 @@ public class SystemController extends BaseApiController {
|
|
|
@Value("${index.logo}")
|
|
|
private String indexLogo;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SystemAuthService authService;
|
|
|
+
|
|
|
@ApiOperation(value = "系统版本及配置")
|
|
|
@RequestMapping(value = "/version", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
@@ -91,6 +96,10 @@ public class SystemController extends BaseApiController {
|
|
|
vo.setIndexLogo(indexLogo);
|
|
|
vo.setVersionName(VersionInfo.NAME);
|
|
|
vo.setVersionDate(VersionInfo.DATE);
|
|
|
+ SystemAuth systemAuth = authService.findOne();
|
|
|
+ if (systemAuth != null) {
|
|
|
+ vo.setSystemAuthType(systemAuth.getType());
|
|
|
+ }
|
|
|
return vo;
|
|
|
}
|
|
|
|