Commit 889d390d by HanSon

保存collection

1 parent 0e2c03ad
......@@ -70,6 +70,10 @@ class ContactFactory
$this->getBatchGroupMembers();
file_put_contents($this->server->config['tmp'] . 'account.json', json_encode(Account::getInstance()->all()));
file_put_contents($this->server->config['tmp'] . 'OfficialAccount.json', json_encode(OfficialAccount::getInstance()->all()));
file_put_contents($this->server->config['tmp'] . 'SpecialAccount.json', json_encode(SpecialAccount::getInstance()->all()));
file_put_contents($this->server->config['tmp'] . 'GroupAccount.json', json_encode(GroupAccount::getInstance()->all()));
file_put_contents($this->server->config['tmp'] . 'ContactAccount.json', json_encode(ContactAccount::getInstance()->all()));
}
/**
......
......@@ -213,6 +213,8 @@ class Server
'BaseRequest' => $this->baseRequest
]);
print_r($this->baseRequest);
$result = json_decode($content, true);
$this->generateSyncKey($result);
......@@ -220,6 +222,7 @@ class Server
static::$myAccount = $result['User'];
if($result['BaseResponse']['Ret'] != 0){
print_r($result);
file_put_contents($this->config['tmp'] . 'debug.json', $content);
throw new Exception('[ERROR] init fail!');
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!