File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ' );
You can’t perform that action at this time.
0 commit comments