diff --git a/app/admin/controller/Upload.php b/app/admin/controller/Upload.php
index 371ec27..14ac4bb 100644
--- a/app/admin/controller/Upload.php
+++ b/app/admin/controller/Upload.php
@@ -37,11 +37,31 @@ class Upload extends AdminBase
{
try {
$cid = $this->request->post('cid');
- $result = FileServer::image($cid, 0); // 0 平台
+ if($this->request->get('type') == 20){
+ $result = FileServer::video($cid, 0); // 0 平台
+ }else{
+ $result = FileServer::image($cid, 0); // 0 平台
+ }
+ return JsonServer::success("上传成功", $result);
+ } catch (Exception $e) {
+ return JsonServer::error($e->getMessage());
+ }
+ }
+
+ /**
+ * NOTE: 上传图片
+ * @author: 张无忌
+ */
+ public function video()
+ {
+ try {
+ $cid = $this->request->post('cid');
+ $result = FileServer::video($cid, 0); // 0 平台
return JsonServer::success("上传成功", $result);
} catch (Exception $e) {
return JsonServer::error($e->getMessage());
}
}
+
}
\ No newline at end of file
diff --git a/app/admin/view/content/help/add.html b/app/admin/view/content/help/add.html
index 1338c2b..370f4b8 100644
--- a/app/admin/view/content/help/add.html
+++ b/app/admin/view/content/help/add.html
@@ -67,7 +67,7 @@
-
+