Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
a38ee241
Commit
a38ee241
authored
Nov 13, 2019
by
蒋勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bigdata' of gitlab.gongsibao.com:jiangyong/zhichan into bigdata
parents
22a21a63
a3c95862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bigdata/app/base/api/api.base.js
+3
-3
bigdata/app/config/localsettings.js
+3
-3
No files found.
bigdata/app/base/api/api.base.js
View file @
a38ee241
...
@@ -56,7 +56,7 @@ class APIBase extends DocBase {
...
@@ -56,7 +56,7 @@ class APIBase extends DocBase {
var
isPassResult
=
await
this
.
checkAcck
(
gname
,
methodname
,
pobj
,
query
,
req
);
var
isPassResult
=
await
this
.
checkAcck
(
gname
,
methodname
,
pobj
,
query
,
req
);
if
(
!
isPassResult
.
ispass
)
{
if
(
!
isPassResult
.
ispass
)
{
var
tmpResult
=
system
.
getResultFail
(
system
.
tokenFail
,
"访问token失效,请重新获取"
);
var
tmpResult
=
system
.
getResultFail
(
system
.
tokenFail
,
"访问token失效,请重新获取"
);
tmpResult
.
request
i
d
=
""
;
tmpResult
.
request
I
d
=
""
;
return
tmpResult
;
return
tmpResult
;
}
}
// //检查appkey
// //检查appkey
...
@@ -79,7 +79,7 @@ class APIBase extends DocBase {
...
@@ -79,7 +79,7 @@ class APIBase extends DocBase {
});
});
}
}
}
}
rtn
.
request
i
d
=
requestid
;
rtn
.
request
I
d
=
requestid
;
return
rtn
;
return
rtn
;
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
.
stack
,
"api调用异常--error..................."
);
console
.
log
(
e
.
stack
,
"api调用异常--error..................."
);
...
@@ -90,7 +90,7 @@ class APIBase extends DocBase {
...
@@ -90,7 +90,7 @@ class APIBase extends DocBase {
clientIp
:
req
.
clientIp
clientIp
:
req
.
clientIp
});
});
var
rtnerror
=
system
.
getResultFail
(
-
200
,
"出现异常,请联系管理员"
);
var
rtnerror
=
system
.
getResultFail
(
-
200
,
"出现异常,请联系管理员"
);
rtnerror
.
request
i
d
=
requestid
;
rtnerror
.
request
I
d
=
requestid
;
return
rtnerror
;
return
rtnerror
;
}
}
}
}
...
...
bigdata/app/config/localsettings.js
View file @
a38ee241
...
@@ -10,8 +10,8 @@ var settings = {
...
@@ -10,8 +10,8 @@ var settings = {
user
:
"write"
,
user
:
"write"
,
password
:
"write"
,
password
:
"write"
,
config
:
{
config
:
{
host
:
'
43.247.184.35
'
,
host
:
'
192.168.18.237
'
,
port
:
8899
,
port
:
3306
,
dialect
:
'mysql'
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
operatorsAliases
:
false
,
pool
:
{
pool
:
{
...
@@ -58,6 +58,6 @@ var settings = {
...
@@ -58,6 +58,6 @@ var settings = {
reqEsDevUrl
:
"http://192.168.4.249:9200/"
,
reqEsDevUrl
:
"http://192.168.4.249:9200/"
,
reqHomePageDevUrl
:
"http://p.apps.com:4001/"
,
reqHomePageDevUrl
:
"http://p.apps.com:4001/"
,
reqAuthUrl
:
"http://p.apps.com:4001/auth"
,
reqAuthUrl
:
"http://p.apps.com:4001/auth"
,
docUrl
:
"http://p.apps.com:4001/web/common/metaCtl/getApiDoc"
docUrl
:
"http://p.apps.com:4001/web/common/metaCtl/getApiDoc"
};
};
module
.
exports
=
settings
;
module
.
exports
=
settings
;
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