|
|
@@ -28,7 +28,7 @@ import java.io.*;
|
|
|
@Controller
|
|
|
public class SystemController {
|
|
|
|
|
|
- public static final int CONFIG_TYPE_DOOR = 1;
|
|
|
+ public static final int CONFIG_TYPE_REST = 1;
|
|
|
public static final int CONFIG_TYPE_WALK = 2;
|
|
|
public static final int CONFIG_TYPE_ZFB = 3;
|
|
|
|
|
|
@@ -61,9 +61,9 @@ public class SystemController {
|
|
|
/**
|
|
|
* 设置API是否为会员专属
|
|
|
*/
|
|
|
- @RequestMapping(value = "/api/setApiConfig", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
|
|
|
+ @RequestMapping(value = "/api/setSystemConfig", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
|
|
|
@ResponseBody
|
|
|
- public String setApiConfig(@RequestHeader HttpHeaders header, int configType, boolean booleanValue, String newZFB) {
|
|
|
+ public String setSystemConfig(@RequestHeader HttpHeaders header, int configType, boolean booleanValue, String newZFB) {
|
|
|
ResponseResult<String> responseResult = new ResponseResult<String>();
|
|
|
responseResult.setMessage("设置失败");
|
|
|
if (!RequestTool.isRequestAdminValid(header, userRepository)) {
|
|
|
@@ -77,8 +77,8 @@ public class SystemController {
|
|
|
}
|
|
|
|
|
|
switch (configType) {
|
|
|
- case CONFIG_TYPE_DOOR:
|
|
|
- systemBean.isVipLimit = booleanValue;
|
|
|
+ case CONFIG_TYPE_REST:
|
|
|
+ systemBean.isRestMode = booleanValue;
|
|
|
break;
|
|
|
case CONFIG_TYPE_WALK:
|
|
|
systemBean.isWalking = booleanValue;
|