modify ScriptController
This commit is contained in:
parent
c7aac992cd
commit
3603b08369
|
@ -257,6 +257,7 @@ public class ScriptController extends BaseController {
|
|||
public OperateScriptServerResponseModel queryScriptByName(
|
||||
@RequestParam String name) {
|
||||
if (!this.checkScope(UserService.NORAML_AUTHENTICATION)) {
|
||||
|
||||
return null;
|
||||
}
|
||||
return this.buildReponseModel(true, null, null, 0, null,
|
||||
|
@ -278,12 +279,13 @@ public class ScriptController extends BaseController {
|
|||
null);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "updateScript", method = { RequestMethod.GET,
|
||||
RequestMethod.POST })
|
||||
@RequestMapping(value = "updateScript/{scriptId}", method = {
|
||||
RequestMethod.GET, RequestMethod.PUT })
|
||||
@ResponseBody
|
||||
public OperateScriptServerResponseModel updateScript(
|
||||
@RequestParam int scriptId, @RequestParam String content) {
|
||||
@PathVariable int scriptId, @RequestBody String content) {
|
||||
if (!this.checkScope(UserService.NORAML_AUTHENTICATION)) {
|
||||
Logger.getLogger(ScriptController.class).info("no power");
|
||||
return null;
|
||||
}
|
||||
return this.buildReponseModel(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
portToServe=7979
|
||||
portToServe=8080
|
||||
pickTestPlanCycleInSeconds=60
|
||||
maxFailTime=10
|
||||
minExcuteIntervalInSeconds=600
|
||||
|
|
Loading…
Reference in New Issue