Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
vbot
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 889d390d
authored
Dec 23, 2016
by
HanSon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
保存collection
1 parent
0e2c03ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
src/Collections/ContactFactory.php
src/Core/Server.php
src/Collections/ContactFactory.php
View file @
889d390
...
...
@@ -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
()));
}
/**
...
...
src/Core/Server.php
View file @
889d390
...
...
@@ -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!'
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment