|
@@ -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);
|
|
}
|
|
}
|