dever 4 년 전
부모
커밋
75a74b64a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {