dever 6 years ago
parent
commit
bb821cf43b
2 changed files with 6 additions and 2 deletions
  1. 1 0
      assets/lib/cropper/cropper.js
  2. 5 2
      assets/lib/cropper/main.js

+ 1 - 0
assets/lib/cropper/cropper.js

@@ -687,6 +687,7 @@
    */
 
   function addTimestamp(url) {
+    return url;
     var timestamp = "timestamp=".concat(new Date().getTime());
     return url + (url.indexOf('?') === -1 ? '?' : '&') + timestamp;
   }

+ 5 - 2
assets/lib/cropper/main.js

@@ -154,8 +154,11 @@ window.onload = function () {
         var url = config.host + 'save.cropper&json=1';
         $.post(url, option, function(t)
         {
-            var t = eval('(' + t + ')');
-            var pic = t.data;
+            if (typeof t != 'object') {
+              var t = eval('(' + t + ')');
+            }
+            
+            var pic = t.url;
             window.parent.picSet(pic);
         })
         return;