We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d203c8 commit b166140Copy full SHA for b166140
emchat-server-php/Easemob.class.php
@@ -340,6 +340,7 @@ public function getToken() {
340
$arr = unserialize ( fgets ( $fp ) );
341
if ($arr ['expires_in'] < time ()) {
342
$result = $this->postCurl ( $url, $option, $head = 0 );
343
+ $result = json_decode($result);
344
$result ['expires_in'] = $result ['expires_in'] + time ();
345
@fwrite ( $fp, serialize ( $result ) );
346
return $result ['access_token'];
0 commit comments