1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\controller;
-
-
- use app\common\basics\AdminBase;
- use app\common\server\FileServer;
- use app\common\server\JsonServer;
- use Exception;
-
- class Upload extends AdminBase
- {
-
-
-
-
- public function image()
- {
- try {
- $cid = $this->request->post('cid');
- $result = FileServer::image($cid, 0);
-
- return JsonServer::success("上传成功", $result);
- } catch (Exception $e) {
- return JsonServer::error($e->getMessage());
- }
- }
- }
|