浏览代码

视频点播的key走配置

lizhen_gitee 5 月之前
父节点
当前提交
3476d25b02
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 3 2
      application/common/library/Uploadvideo.php
  2. 3 2
      application/common/library/Video.php

+ 3 - 2
application/common/library/Uploadvideo.php

@@ -8,8 +8,9 @@ class Uploadvideo{
     public function __construct(){
         date_default_timezone_set('PRC');
 
-        $this->accessKeyId = 'LTAI5t5kfj2Efg6YA7awDUoP';
-        $this->accessKeySecret = 't5HZA7628nQv9tGv0y50AOoMfgMYkl';
+        $config = config('vod');
+        $this->accessKeyId = $config['accessKeyId'];
+        $this->accessKeySecret = $config['accessKeySecret'];
     }
 
     public function test1(){

+ 3 - 2
application/common/library/Video.php

@@ -14,8 +14,9 @@ class Video
     public function __construct(){
         define("VOD_CLIENT_NAME", 'AliyunVodClientDemo');
 
-        $this->accessKeyId = 'LTAI5t5kfj2Efg6YA7awDUoP';
-        $this->accessKeySecret = 't5HZA7628nQv9tGv0y50AOoMfgMYkl';
+        $config = config('vod');
+        $this->accessKeyId = $config['accessKeyId'];
+        $this->accessKeySecret = $config['accessKeySecret'];
 
         $this->initVodClient();
     }