| xqd
@@ -339,4 +339,18 @@ class CommonController extends Controller
|
|
|
|
|
|
return out(['token' => $token]);
|
|
|
}
|
|
|
+
|
|
|
+ public function delServerFile()
|
|
|
+ {
|
|
|
+ $req = request()->post();
|
|
|
+ $this->validate(request(), [
|
|
|
+ 'url' => 'required|url'
|
|
|
+ ]);
|
|
|
+
|
|
|
+ $tem = parse_url($req['url']);
|
|
|
+ $allPath = public_path().$tem['path'];
|
|
|
+ unlink($allPath);
|
|
|
+
|
|
|
+ return out();
|
|
|
+ }
|
|
|
}
|