Skip to content

Commit

Permalink
Update Server.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanson authored Nov 1, 2021
1 parent c70a886 commit 92c9a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function saveServer()
protected function init($first = true)
{
$this->beforeInitSuccess();
$url = $this->vbot->config['server.uri.base'].'/webwxinit?r='.time().'&pass_ticket='.$this->vbot->config['server.passTicket'];
$url = $this->vbot->config['server.uri.base'].'/webwxinit?r='.(-time() / 1579).'&pass_ticket='.$this->vbot->config['server.passTicket'];

$result = $this->vbot->http->json($url, [
'BaseRequest' => $this->vbot->config['server.baseRequest'],
Expand Down

0 comments on commit 92c9a97

Please sign in to comment.