Skip to content

Commit b166140

Browse files
committed
fix json encode miss
1 parent 6d203c8 commit b166140

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

emchat-server-php/Easemob.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ public function getToken() {
340340
$arr = unserialize ( fgets ( $fp ) );
341341
if ($arr ['expires_in'] < time ()) {
342342
$result = $this->postCurl ( $url, $option, $head = 0 );
343+
$result = json_decode($result);
343344
$result ['expires_in'] = $result ['expires_in'] + time ();
344345
@fwrite ( $fp, serialize ( $result ) );
345346
return $result ['access_token'];

0 commit comments

Comments
 (0)