|
|
@@ -30,6 +30,7 @@ public class SystemController {
|
|
|
|
|
|
public static final int CONFIG_TYPE_DOOR = 1;
|
|
|
public static final int CONFIG_TYPE_WALK = 2;
|
|
|
+ public static final int CONFIG_TYPE_ZFB = 3;
|
|
|
|
|
|
@Autowired
|
|
|
FeedbackRepository feedbackRepository;
|
|
|
@@ -115,7 +116,7 @@ public class SystemController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/api/setApiConfig", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
|
|
|
@ResponseBody
|
|
|
- public String setApiConfig(@RequestHeader HttpHeaders header, boolean booleanValue, int configType) {
|
|
|
+ public String setApiConfig(@RequestHeader HttpHeaders header, int configType, boolean booleanValue, String newZFB) {
|
|
|
ResponseResult<String> responseResult = new ResponseResult<String>();
|
|
|
responseResult.setMessage("设置失败");
|
|
|
if (!RequestTool.isRequestAdminValid(header, userRepository)) {
|
|
|
@@ -135,6 +136,9 @@ public class SystemController {
|
|
|
case CONFIG_TYPE_WALK:
|
|
|
systemBean.isWalking = booleanValue;
|
|
|
break;
|
|
|
+ case CONFIG_TYPE_ZFB:
|
|
|
+ systemBean.zfb = newZFB;
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|