12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\Db;
- use app\common\library\Uploadvideo;
- class Demo extends Api
- {
-
-
-
-
-
- protected $noNeedLogin = ['test', 'test1'];
-
- protected $noNeedRight = ['test2'];
-
- public function test()
- {
- $params = [
- 'video_file' => '/uploads/20241101/b472251c04af8842b14f6c15a57fca9b.mp4',
- 'title' => '测试',
- ];
- $full_filepath = config('upload.cdnurl').$params['video_file'];
- $uploadvideo = new Uploadvideo();
- $res = $uploadvideo->testUploadWebVideo($full_filepath,$params['title']);
- $params['vodid'] = $res;
- }
-
- public function test1()
- {
- $this->success('返回成功', ['action' => 'test1']);
- }
-
- public function test2()
- {
- $this->success('返回成功', ['action' => 'test2']);
- }
-
- public function test3()
- {
- $this->success('返回成功', ['action' => 'test3']);
- }
- }
|