Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
gjjh5
Commits
a404dcef
Commit
a404dcef
authored
Feb 26, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjjh5
parent
97f70541
Pipeline
#3881
passed with stage
in 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
task.js
app/service/task.js
+1
-1
config.prod.js
config/config.prod.js
+5
-0
No files found.
app/service/task.js
View file @
a404dcef
...
@@ -31,7 +31,7 @@ class TaskService extends Service {
...
@@ -31,7 +31,7 @@ class TaskService extends Service {
this
.
ctx
.
throw
(
result
.
status
,
errorMsg
);
this
.
ctx
.
throw
(
result
.
status
,
errorMsg
);
}
}
if
(
result
.
data
.
code
!==
0
)
{
if
(
result
.
data
.
code
!==
0
)
{
this
.
ctx
.
throw
(
400
,
{
message
:
result
.
data
.
msg
||
result
.
data
.
img
,
code
:
result
.
data
.
code
});
this
.
ctx
.
throw
(
400
,
{
message
:
result
.
data
.
msg
||
result
.
data
.
data
.
img
,
code
:
result
.
data
.
code
||
-
1
});
}
}
}
}
async
create
(
data
)
{
async
create
(
data
)
{
...
...
config/config.prod.js
View file @
a404dcef
...
@@ -4,6 +4,11 @@ module.exports = () => {
...
@@ -4,6 +4,11 @@ module.exports = () => {
const
config
=
exports
=
{};
const
config
=
exports
=
{};
config
.
debug
=
true
;
config
.
debug
=
true
;
config
.
logger
=
{
dir
:
'/jianbing/logs/gjjh5'
,
};
// config.redis = {
// config.redis = {
// client: {
// client: {
// port: 6379,
// port: 6379,
...
...
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