dever 4 years ago
parent
commit
75a74b64a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/View/Qiniu.php

+ 1 - 1
lib/View/Qiniu.php

@@ -23,7 +23,7 @@ class Qiniu
 
             $token = $auth->uploadToken($upload['bucket'], null, 3600);
             $up['token'] = $token;
-            $up['token_endtime'] = $time + 3600 - 60;
+            $up['token_endtime'] = $cur + 3600 - 60;
             $up['where_id'] = $config['id'];
             Dever::db('upload/yun')->update($up);
         } else {