Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sb_h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data_server
sb_h5
Commits
f063d756
Commit
f063d756
authored
Apr 03, 2020
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1cde8560
Pipeline
#21335
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
storage.js
app/service/storage.js
+3
-2
No files found.
app/service/storage.js
View file @
f063d756
...
...
@@ -23,6 +23,7 @@ class StorageService extends Service {
dataType
:
'json'
,
...
opts
,
};
ctx
.
logger
.
info
(
`【StorageService】
${
url
}
`
);
return
ctx
.
curl
(
url
,
opts
);
}
...
...
@@ -35,7 +36,7 @@ class StorageService extends Service {
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`【Storage】write
url:
${
writeUrl
}
params`
,
{
...
data
,
serviceType
:
writeType
},
'result:'
,
result
.
data
);
ctx
.
logger
.
info
(
`【Storage】write
result:
${
JSON
.
stringify
(
result
.
data
)}
`
);
if
(
!
(
result
.
data
.
code
!==
'0'
||
result
.
data
.
code
!==
0
))
{
throw
new
Error
(
'存储数据出错'
);
}
...
...
@@ -48,7 +49,7 @@ class StorageService extends Service {
method
:
'get'
,
contentType
:
'json'
,
});
ctx
.
logger
.
info
(
`【Storage】read url:
${
readUrl
}${
orderId
}
`
);
ctx
.
logger
.
info
(
`【Storage】read url:
${
readUrl
}${
orderId
}
`
,
JSON
.
stringify
(
result
.
data
)
);
if
(
result
&&
result
.
data
&&
result
.
data
.
code
!==
0
)
{
ctx
.
logger
.
error
(
`storageAPI read
${
readUrl
}${
orderId
}
`
,
JSON
.
stringify
(
result
.
data
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment