Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
taxh5
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
taxh5
Commits
54036187
Commit
54036187
authored
Apr 10, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置
parent
cec2e8f7
Pipeline
#5824
passed with stage
in 2 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
README.md
+1
-1
order.js
app/controller/order.js
+2
-2
script.js
app/controller/script.js
+1
-1
config.local.js
config/config.local.js
+2
-2
config.prod.js
config/config.prod.js
+4
-4
No files found.
README.md
View file @
54036187
#
hf
_h5_server
#
it
_h5_server
公积金H5认证服务
...
...
app/controller/order.js
View file @
54036187
...
...
@@ -50,7 +50,7 @@ class OrderController extends Controller {
ctx
.
validate
(
this
.
createRule
);
let
{
appKey
,
userId
,
notifyUrl
,
backUrl
,
orderId
}
=
ctx
.
request
.
body
;
const
appKeyInfo
=
await
service
.
partner
.
fetchInfo
(
appKey
);
if
(
!
(
appKeyInfo
&&
appKeyInfo
.
valid
===
true
&&
appKeyInfo
.
enable
Hf
===
true
))
{
if
(
!
(
appKeyInfo
&&
appKeyInfo
.
valid
===
true
&&
appKeyInfo
.
enable
It
===
true
))
{
return
ctx
.
fail
(
'未开通此服务'
);
}
const
object
=
{
...
...
@@ -112,7 +112,7 @@ class OrderController extends Controller {
const
{
ctx
,
service
}
=
this
;
const
{
appKey
,
orderId
}
=
ctx
.
params
;
const
appKeyInfo
=
await
service
.
partner
.
fetchInfo
(
appKey
);
if
(
!
(
appKeyInfo
&&
appKeyInfo
.
valid
===
true
&&
appKeyInfo
.
enable
Hf
View
===
true
))
{
if
(
!
(
appKeyInfo
&&
appKeyInfo
.
valid
===
true
&&
appKeyInfo
.
enable
It
View
===
true
))
{
return
ctx
.
fail
(
'未开通此服务'
);
}
const
data
=
await
service
.
order
.
getOneByOrderId
(
orderId
);
...
...
app/controller/script.js
View file @
54036187
...
...
@@ -10,7 +10,7 @@ class ScriptController extends Controller {
if
(
appKey
)
{
const
ret
=
await
service
.
partner
.
fetchInfo
(
appKey
);
if
(
ret
)
{
limitScriptsList
=
ret
.
hf
ExcludeScripts
;
limitScriptsList
=
ret
.
it
ExcludeScripts
;
}
}
let
data
=
await
service
.
scripts
.
fetchScripts
();
...
...
config/config.local.js
View file @
54036187
...
...
@@ -28,8 +28,8 @@ module.exports = () => {
host
:
'https://dev-nginx.jianbing.com/zeus-api/v1'
,
fetchTheme
:
'/chaos/partners/theme'
,
fetchScripts
:
'/chaos/partners/scripts'
,
redisThemePrefix
:
'URANUS.
HF
.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.
HF
.PARNTERS.SCRIPTS'
,
redisThemePrefix
:
'URANUS.
It
.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.
It
.PARNTERS.SCRIPTS'
,
};
config
.
scriptsAPI
=
{
...
...
config/config.prod.js
View file @
54036187
...
...
@@ -32,11 +32,11 @@ module.exports = () => {
fetchTheme
:
'/chaos/partners/theme'
,
fetchScripts
:
'/chaos/partners/scripts'
,
fetchAgreements
:
'/chaos/agreements'
,
redisThemePrefix
:
'URANUS.
HF
.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.
HF
.PARNTERS.SCRIPTS'
,
redisAgreementsPrefix
:
'URANUS.
HF
.PARNTERS.Agreements'
,
redisThemePrefix
:
'URANUS.
IT
.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.
IT
.PARNTERS.SCRIPTS'
,
redisAgreementsPrefix
:
'URANUS.
IT
.PARNTERS.Agreements'
,
fetchInfo
:
'/chaos/partner'
,
redisInfoPrefix
:
'URANUS.
HF
.PARNTERS.Info'
,
redisInfoPrefix
:
'URANUS.
IT
.PARNTERS.Info'
,
};
config
.
scriptsAPI
=
{
...
...
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