1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\kefuapi\controller;
-
- use app\common\basics\KefuBase;
- use app\common\server\FileServer;
- use app\common\server\JsonServer;
-
- class File extends KefuBase
- {
-
- public $like_not_need_login = [];
-
-
-
- public function formImage()
- {
- try{
- $data = FileServer::image(0, $this->shop_id, 0, 'uploads/kefu/'.$this->kefu_id);
- return JsonServer::success('上传成功', $data);
- }catch(\Exception $e) {
- return JsonServer::error($e->getMessage());
- }
- }
- }
|