|
@@ -103,7 +103,7 @@ class TwitterService implements SmmPlatformInterface
|
|
|
'userId' => $userId,
|
|
|
'userName' => $username,
|
|
|
'accessToken_expiresAt' => $expiresAt,
|
|
|
- 'refresh_token' => $refresh_token,
|
|
|
+ 'refreshToken' => $refresh_token,
|
|
|
]
|
|
|
];
|
|
|
} else {
|
|
@@ -421,6 +421,7 @@ class TwitterService implements SmmPlatformInterface
|
|
|
throw new \Exception("Access token not found in response");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
$newAccessToken = $authData['access_token'];
|
|
|
$newRefreshToken = $authData['refresh_token'] ?? $refreshToken; // 使用新的refresh_token,若未返回则保留原值
|
|
|
$expiresIn = $authData['expires_in'] ?? 0;
|