Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
shenyizhong
/
minsync
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b125831f
authored
Jan 17, 2022
by
shenyizhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* code review
1 parent
fb7d7dec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
.gitignore
src/httpcli/httpcli.go
.gitignore
View file @
b125831
src/.idea/
src/config.json
src/minsync
src/minsync.exe
...
...
src/httpcli/httpcli.go
View file @
b125831
...
...
@@ -251,7 +251,7 @@ func RemotPathExists(path string) (def.ErrCode, error) {
var
resp
*
http
.
Response
resp
,
err
=
http
.
DefaultClient
.
Do
(
req
)
if
err
!=
nil
{
if
resp
.
StatusCode
!=
200
||
err
!=
nil
{
log
.
Println
(
err
)
return
def
.
ERR_HTTP_REQUEST
,
err
}
...
...
@@ -263,7 +263,10 @@ func RemotPathExists(path string) (def.ErrCode, error) {
}
var
dl
SvrResp
json
.
Unmarshal
(
body
,
&
dl
)
err
=
json
.
Unmarshal
(
body
,
&
dl
)
if
err
!=
nil
{
return
def
.
ERR_JSON_PARSE
,
err
}
if
dl
.
Msg
==
"user do not login"
{
return
def
.
ERR_NOT_LOGIN
,
nil
...
...
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