lizhen_gitee 4 månader sedan
förälder
incheckning
bd437027c0

+ 0 - 1
extend/voduploadsdk/Autoloader.php

@@ -4,7 +4,6 @@ function VodClassLoader($class)
 {
 {
     $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
     $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
     $file = __DIR__ . DIRECTORY_SEPARATOR . 'uploader'. DIRECTORY_SEPARATOR . $path . '.php';
     $file = __DIR__ . DIRECTORY_SEPARATOR . 'uploader'. DIRECTORY_SEPARATOR . $path . '.php';
-
     if (file_exists($file)) {
     if (file_exists($file)) {
         require_once $file;
         require_once $file;
     }
     }

+ 2 - 2
extend/voduploadsdk/uploader/AliyunVodUploader.php

@@ -551,8 +551,8 @@ class AliyunVodUploader
         else {
         else {
             $rate = 0;
             $rate = 0;
         }
         }
-        /*printf("[%s]UploadProgress of Media %s, uploaded %s bytes, percent %s%s\n",
-            AliyunVodUtils::getCurrentTimeStr(), $mediaId, $consumedBytes, round($rate, 1), '%');*/
+        printf("[%s]UploadProgress of Media %s, uploaded %s bytes, percent %s%s\n",
+            AliyunVodUtils::getCurrentTimeStr(), $mediaId, $consumedBytes, round($rate, 1), '%');
         flush();
         flush();
     }
     }
 
 

+ 1 - 1
extend/voduploadsdk/uploader/AliyunVodUtils.php

@@ -121,7 +121,7 @@ class AliyunVodUtils
 
 
 class AliyunVodLog
 class AliyunVodLog
 {
 {
-    public static $logSwitch = false;
+    public static $logSwitch = true;
     public static function printLog($format, $args = null, $_ = null) {
     public static function printLog($format, $args = null, $_ = null) {
         if (!AliyunVodLog::$logSwitch) {
         if (!AliyunVodLog::$logSwitch) {
             return;
             return;