star7th 7 years ago
parent
commit
a0bbc29dcf
1 changed files with 1 additions and 1 deletions
  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{