|
@@ -66,6 +66,16 @@ public class TestController extends BaseController {
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/restart")
|
|
|
+ public R<String> restart() {
|
|
|
+ try {
|
|
|
+ cameraUtil.restart();
|
|
|
+ } catch (Exception e) {
|
|
|
+ return R.ok(e.getMessage().toString());
|
|
|
+ }
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/cmd")
|
|
|
public R<String> cmd(String cmd) {
|
|
|
|