作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

页面生成图片修改

@@ -254,7 +254,7 @@ class OrderSalesmanController extends WeChatBaseController @@ -254,7 +254,7 @@ class OrderSalesmanController extends WeChatBaseController
254 public function upload_img() { 254 public function upload_img() {
255 if($this->request->isAjax()) { 255 if($this->request->isAjax()) {
256 set_time_limit(0); 256 set_time_limit(0);
257 - ini_set('memory_limit', '256M'); 257 + ini_set('memory_limit', '512M');
258 ini_set("max_execution_time", 0); 258 ini_set("max_execution_time", 0);
259 $img = $this->request->param('img'); 259 $img = $this->request->param('img');
260 $top = $this->request->param('top'); 260 $top = $this->request->param('top');
@@ -1454,9 +1454,6 @@ @@ -1454,9 +1454,6 @@
1454 success: function (res) { 1454 success: function (res) {
1455 img_url = res.data; 1455 img_url = res.data;
1456 $('.view_img').css('display','block'); 1456 $('.view_img').css('display','block');
1457 - },  
1458 - error: function (XMLHttpRequest, textStatus, errorThrown) {  
1459 - alert(XMLHttpRequest.status+" "+XMLHttpRequest.readyState+" "+textStatus);  
1460 } 1457 }
1461 }); 1458 });
1462 // document.querySelector(".down").setAttribute('href', canvas.toDataURL()); 1459 // document.querySelector(".down").setAttribute('href', canvas.toDataURL());