Commit cd020f3d by 冷斌

fix bug

parent c89b282e
...@@ -204,12 +204,12 @@ class Upload { ...@@ -204,12 +204,12 @@ class Upload {
/* 保存文件 并记录保存成功的文件 */ /* 保存文件 并记录保存成功的文件 */
if ($this->uploader->save($file,$this->replace)) { if ($this->uploader->save($file,$this->replace)) {
// unset($file['error'], $file['tmp_name']); unset($file['error'], $file['tmp_name']);
$info[$key] = $file; $info[$key] = $file;
} else { } else {
$this->error = $this->uploader->getError(); $this->error = $this->uploader->getError();
} }
var_dump($file, $file,$this->replace, $this->uploader->getError() ); var_dump($file, $this->replace, $this->uploader->getError() );
die; die;
} }
if(isset($finfo)){ if(isset($finfo)){
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
public $timeout = ''; public $timeout = '';
public function __construct($config){ public function __construct($config){
echo 1;die;
$this->sk = $config['secretKey']; $this->sk = $config['secretKey'];
$this->ak = $config['accessKey']; $this->ak = $config['accessKey'];
$this->domain = $config['domain']; $this->domain = $config['domain'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment