Skip to content

Commit

Permalink
ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
webcrud committed Sep 19, 2021
1 parent 1bc27f4 commit fdd3eba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Business/App/Rule/AppSessionRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function delete(AppSessionEntity &$record)
}
$record->delete($db);
}
public static function createAuthfastToken(AppSessionEntity &$record, $appKey, $secretKey, $baseUrl, $token = null)
public static function createAuthfastToken(AppSessionEntity &$record, $appKey, $secretKey, $baseUrl)
{
$headers = [
'appKey: ' . $appKey,
Expand All @@ -51,7 +51,6 @@ public static function createAuthfastToken(AppSessionEntity &$record, $appKey, $
'type' => $record->getType(),
'access_ip' => $record->getAccessIp(),
'access_browser' => $record->getAccessBrowser(),
'token' => $token,
], $headers, false, false);
$response = @json_decode($response['response'], true);
if (!isset($response['response']) || !isset($response['response']['code']) || !isset($response['response']['msg']) || !isset($response['data'])) {
Expand Down

0 comments on commit fdd3eba

Please sign in to comment.