Mike 7 years ago
parent
commit
0bfe86cf93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/app/Http/Controllers/Api/V1/AuthController.php

+ 1 - 1
server/app/Http/Controllers/Api/V1/AuthController.php

@@ -283,7 +283,7 @@ class AuthController extends Controller
             $result = array_shift($result);
             $result = array_shift($result);
         }
         }
         if (is_string($result)) {
         if (is_string($result)) {
-            $user->avatar = config('app.url')."/api/attachment/download/".$result;
+            $user->avatar = config('app.url')."api/attachment/download/".$result;
             if (!$user->save()) {
             if (!$user->save()) {
                 return $this->error(ErrorCode::SAVE_USER_FAILED);
                 return $this->error(ErrorCode::SAVE_USER_FAILED);
             }
             }