| 
														
															@@ -27,7 +27,7 @@ class Qiniu extends Core implements Config 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             $this->file = $ret['key']; 
														 | 
														
														 | 
														
															             $this->file = $ret['key']; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (!$this->limit) { 
														 | 
														
														 | 
														
															             if (!$this->limit) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 $data = Dever::curl($this->output['url'] . '?imageInfo'); 
														 | 
														
														 | 
														
															                 $data = Dever::curl($this->output['url'] . '?imageInfo'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if ($data) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                if ($data && !strstr($data, 'unsupported format')) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     $data = Dever::json_decode($data); 
														 | 
														
														 | 
														
															                     $data = Dever::json_decode($data); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     if (isset($data['width'])) { 
														 | 
														
														 | 
														
															                     if (isset($data['width'])) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         $this->limit = array($data['width'], $data['height']); 
														 | 
														
														 | 
														
															                         $this->limit = array($data['width'], $data['height']); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -45,11 +45,6 @@ class Qiniu extends Core implements Config 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         $method->delete($this->file); 
														 | 
														
														 | 
														
															                         $method->delete($this->file); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         return $this->output; 
														 | 
														
														 | 
														
															                         return $this->output; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                } else { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    $this->output['status'] = -1; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    $this->output['message'] = '上传失败'; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    $method->delete($this->file); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    return $this->output; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } 
														 | 
														
														 | 
														
															                 } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |