yingzi 2 years ago
parent
commit
bba8e6a6c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/controller/User.php

+ 1 - 1
app/api/controller/User.php

@@ -823,7 +823,7 @@ class User extends BaseController
                 return ["code"=>-1,"msg"=>"文件报错失败:".$qiniu->getError()];
                 return ["code"=>-1,"msg"=>"文件报错失败:".$qiniu->getError()];
             }
             }
             @unlink($filePath);
             @unlink($filePath);
-            return ["code"=>1,"url"=>str_replace("\\", "/", $img_url)];
+            return ["code"=>1,"url"=>str_replace("\\", "/", $img_url['url'])];
         }
         }