Skip to content

Commit d5406ec

Browse files
authored
Merge pull request #7 from CubeCoders/basara
fixes
2 parents f2b6b93 + 69fe583 commit d5406ec

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

modules/servers/AMP/lib/Client.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ public function __construct(array $params)
2222
$session = Capsule::table('ampSessions')->where('serverId', $params['serverid'])->value('sessionId');
2323
}
2424
$this->params->sessionId = !empty($session) ? $session : $this->getSessionId();
25-
26-
2725
}
2826

2927
public function getEndpoint()
@@ -58,14 +56,6 @@ private function getSessionId()
5856
$response = curl_exec($ch);
5957
$decoded = json_decode($response, 1);
6058

61-
$decoded = [
62-
'result' => [
63-
'FeatureSet' => [
64-
'CommercialUsage'
65-
]
66-
]
67-
];
68-
6959
if(empty($decoded))
7060
{
7161
throw new \Exception('Unknown response');
@@ -118,8 +108,6 @@ public function call(string $query, array $data = [])
118108
$response = curl_exec($ch);
119109
$decoded = json_decode($response, 1);
120110

121-
122-
123111
if($decoded['Title'] == 'Unauthorized Access' || $decoded['result']['Status'] == false)
124112
{
125113
$data['SESSIONID'] = $this->getSessionId();
@@ -132,14 +120,6 @@ public function call(string $query, array $data = [])
132120
}
133121
curl_close($ch);
134122

135-
$decoded = [
136-
'result' => [
137-
'FeatureSet' => [
138-
'CommercialUsage'
139-
]
140-
]
141-
];
142-
143123
if(empty($decoded))
144124
{
145125
throw new \Exception('Unknown response');

0 commit comments

Comments
 (0)