Skip to content

Commit

Permalink
修改初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanson committed May 5, 2017
1 parent 50fd4e0 commit 8b9a412
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Core/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ protected function init($first = true)
{
$url = sprintf($this->baseUri.'/webwxinit?r=%d', time());

$result = http()->post($url, json_encode([
$content = http()->json($url, [
'BaseRequest' => $this->baseRequest,
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), true);
]);

$result = json_decode($content, true);

$this->generateSyncKey($result, $first);

Expand Down

0 comments on commit 8b9a412

Please sign in to comment.