star7th %!s(int64=8) %!d(string=hai) anos
pai
achega
a0bbc29dcf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/Application/Api/Controller/PageController.class.php

+ 1 - 1
server/Application/Api/Controller/PageController.class.php

@@ -208,7 +208,7 @@ class PageController extends BaseController {
           $Upload = new \Think\Upload(C('UPLOAD_SITEIMG_QINIU'));
           $info = $Upload->upload($_FILES);
           $url = $info['editormd-image-file']['url'] ;
-          if ($ret) {
+          if ($url) {
               echo json_encode(array("url"=>$url,"success"=>1));
           }
         }else{