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
9a13b017
Commit
9a13b017
authored
Apr 11, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单号
parent
6efc49dc
Pipeline
#5855
passed with stage
in 2 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
partner.js
app/controller/partner.js
+1
-6
config.local.js
config/config.local.js
+6
-2
config.prod.js
config/config.prod.js
+2
-2
No files found.
app/controller/partner.js
View file @
9a13b017
...
@@ -3,16 +3,11 @@
...
@@ -3,16 +3,11 @@
const
Controller
=
require
(
'egg'
).
Controller
;
const
Controller
=
require
(
'egg'
).
Controller
;
class
PartnerController
extends
Controller
{
class
PartnerController
extends
Controller
{
// constructor(ctx) {
// super(ctx);
// }
async
show
()
{
async
show
()
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
,
service
}
=
this
;
const
{
appKey
}
=
ctx
.
params
;
const
{
appKey
}
=
ctx
.
params
;
const
ret
=
await
service
.
partner
.
fetchTheme
(
appKey
);
const
ret
=
await
service
.
partner
.
fetchTheme
(
appKey
);
if
(
ret
&&
ret
.
id
===
appKey
)
{
if
(
ret
&&
ret
.
appKey
===
appKey
)
{
ctx
.
success
(
ret
);
ctx
.
success
(
ret
);
return
;
return
;
}
}
...
...
config/config.local.js
View file @
9a13b017
...
@@ -28,8 +28,12 @@ module.exports = () => {
...
@@ -28,8 +28,12 @@ module.exports = () => {
host
:
'https://dev-nginx.jianbing.com/zeus-api/v1'
,
host
:
'https://dev-nginx.jianbing.com/zeus-api/v1'
,
fetchTheme
:
'/chaos/theme'
,
fetchTheme
:
'/chaos/theme'
,
fetchScripts
:
'/chaos/partners/scripts'
,
fetchScripts
:
'/chaos/partners/scripts'
,
redisThemePrefix
:
'URANUS.It.PARNTERS.THEME'
,
fetchAgreements
:
'/chaos/agreements'
,
redisScriptsPrefix
:
'URANUS.It.PARNTERS.SCRIPTS'
,
fetchInfo
:
'/chaos/partner'
,
redisThemePrefix
:
'URANUS.IT.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.IT.PARNTERS.SCRIPTS'
,
redisAgreementsPrefix
:
'URANUS.IT.PARNTERS.Agreements'
,
redisInfoPrefix
:
'URANUS.IT.PARNTERS.Info'
,
};
};
config
.
scriptsAPI
=
{
config
.
scriptsAPI
=
{
...
...
config/config.prod.js
View file @
9a13b017
...
@@ -32,11 +32,11 @@ module.exports = () => {
...
@@ -32,11 +32,11 @@ module.exports = () => {
fetchTheme
:
'/chaos/theme'
,
fetchTheme
:
'/chaos/theme'
,
fetchScripts
:
'/chaos/partners/scripts'
,
fetchScripts
:
'/chaos/partners/scripts'
,
fetchAgreements
:
'/chaos/agreements'
,
fetchAgreements
:
'/chaos/agreements'
,
fetchInfo
:
'/chaos/partner'
,
redisThemePrefix
:
'URANUS.IT.PARNTERS.THEME'
,
redisThemePrefix
:
'URANUS.IT.PARNTERS.THEME'
,
redisScriptsPrefix
:
'URANUS.IT.PARNTERS.SCRIPTS'
,
redisScriptsPrefix
:
'URANUS.IT.PARNTERS.SCRIPTS'
,
redisAgreementsPrefix
:
'URANUS.IT.PARNTERS.Agreements'
,
redisAgreementsPrefix
:
'URANUS.IT.PARNTERS.Agreements'
,
fetchInfo
:
'/chaos/partner'
,
redisInfoPrefix
:
'URANUS.IT.PARNTERS.Info'
,
redisInfoPrefix
:
'URANUS.IT.PARNTERS.Info'
,
};
};
config
.
scriptsAPI
=
{
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