dever преди 6 години
родител
ревизия
769df50583
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  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();