dever %!s(int64=6) %!d(string=hai) anos
pai
achega
769df50583
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      lib/Store/Core.php
  2. 1 0
      src/Save.php

+ 1 - 1
lib/Store/Core.php

@@ -204,7 +204,7 @@ class Core
 			}
 
 			$this->data['file'] = array();
-			if (!$this->yun && strstr($name, 'http')) {
+			if (((isset($this->data['cropper']) && !$this->yun) || !isset($this->data['cropper'])) && strstr($name, 'http')) {
 				$this->base64 = false;
 				$this->root();
 				header('Content-type: text/json; charset=utf-8');

+ 1 - 0
src/Save.php

@@ -24,6 +24,7 @@ class Save
 		$send['cate'] = 2;
 		$send['name'] = 'cr_';
 		$send['file'] = Dever::input('img');
+		$send['cropper'] = true;
 		$handle = new Handle($send);
 
 		$this->output = $handle->copy();