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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
95 deletions
+94
-95
partner.js
app/controller/partner.js
+1
-6
config.local.js
config/config.local.js
+91
-87
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
'use strict'
;
'use strict'
;
module
.
exports
=
()
=>
{
module
.
exports
=
()
=>
{
const
config
=
exports
=
{};
const
config
=
exports
=
{};
config
.
debug
=
true
;
config
.
debug
=
true
;
config
.
projectRootPath
=
'/taxh5'
;
config
.
projectRootPath
=
'/taxh5'
;
config
.
redis
=
{
config
.
redis
=
{
client
:
{
client
:
{
port
:
6379
,
port
:
6379
,
host
:
'116.62.55.137'
,
host
:
'116.62.55.137'
,
password
:
'DEV8redis'
,
password
:
'DEV8redis'
,
db
:
0
,
db
:
0
,
},
},
};
};
config
.
taskAPI
=
{
config
.
taskAPI
=
{
host
:
'http://tm.51gjj.com:6824'
,
host
:
'http://tm.51gjj.com:6824'
,
fetchHubsUrl
:
''
,
fetchHubsUrl
:
''
,
createTaskUrl
:
'/IncomeTax/createItTask'
,
createTaskUrl
:
'/IncomeTax/createItTask'
,
fetchCodeUrl
:
'/IncomeTax/getItCode'
,
fetchCodeUrl
:
'/IncomeTax/getItCode'
,
submitTaskUrl
:
'/IncomeTax/loginItWeb'
,
submitTaskUrl
:
'/IncomeTax/loginItWeb'
,
fetchTaskUrl
:
'/IncomeTax/getItData'
,
fetchTaskUrl
:
'/IncomeTax/getItData'
,
cityConfigUrl
:
'/IncomeTax/getItSetting'
cityConfigUrl
:
'/IncomeTax/getItSetting'
};
};
config
.
partnerAPI
=
{
config
.
partnerAPI
=
{
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
=
{
host
:
'https://dev-nginx.jianbing.com/zeus-api/v1'
,
host
:
'https://dev-nginx.jianbing.com/zeus-api/v1'
,
fetchScriptsUrl
:
'/chaos/it/two_dimension_array/queries'
,
fetchScriptsUrl
:
'/chaos/it/two_dimension_array/queries'
,
fetchOneScriptUrl
:
'/chaos/it/two_dimension_array/info'
,
fetchOneScriptUrl
:
'/chaos/it/two_dimension_array/info'
,
fetchParamsInfoUrl
:
'/chaos/it/login_param_map'
,
fetchParamsInfoUrl
:
'/chaos/it/login_param_map'
,
fetchQueryButtonUrl
:
'/chaos/it/query_button'
,
fetchQueryButtonUrl
:
'/chaos/it/query_button'
,
fetchHelpUrl
:
'/chaos/it/help'
,
fetchHelpUrl
:
'/chaos/it/help'
,
fetchNoticeUrl
:
'/chaos/it/notice'
,
fetchNoticeUrl
:
'/chaos/it/notice'
,
fetchHubSeriptsUrl
:
'/chaos/it/hubs'
,
fetchHubSeriptsUrl
:
'/chaos/it/hubs'
,
fetchScriptByCityNameUrl
:
'/chaos/it/city_scripts'
,
fetchScriptByCityNameUrl
:
'/chaos/it/city_scripts'
,
redisScriptsKey
:
'URANUS.IT.SCRIPTS'
,
redisScriptsKey
:
'URANUS.IT.SCRIPTS'
,
redisParamsKey
:
'URANUS.IT.PARAMS'
,
redisParamsKey
:
'URANUS.IT.PARAMS'
,
};
};
config
.
storageAPI
=
{
config
.
storageAPI
=
{
host
:
'http://tv.51gjj.com:11252'
,
host
:
'http://tv.51gjj.com:11252'
,
writeUrl
:
'/data'
,
writeUrl
:
'/data'
,
readUrl
:
'/IncomeTax'
,
readUrl
:
'/IncomeTax'
,
writeType
:
'incomeTax'
,
writeType
:
'incomeTax'
,
readDataKey
:
'incometaxData'
,
readDataKey
:
'incometaxData'
,
};
};
config
.
washAPI
=
{
config
.
washAPI
=
{
host
:
''
,
host
:
''
,
washUrl
:
''
,
washUrl
:
''
,
};
};
config
.
signatureAPI
=
{
config
.
signatureAPI
=
{
host
:
'http://tj3.51gjj.com:5118'
,
host
:
'http://tj3.51gjj.com:5118'
,
fetchTokenUrl
:
'/Access/GetToken'
,
fetchTokenUrl
:
'/Access/GetToken'
,
fetchOrderIdUrl
:
'/Order/GetOrderSn'
,
fetchOrderIdUrl
:
'/Order/GetOrderSn'
,
signatureUrl
:
'/Access/SignValidityCheck'
,
signatureUrl
:
'/Access/SignValidityCheck'
,
fetchParnterUrl
:
''
,
fetchParnterUrl
:
''
,
signatureType
:
'incomeTax'
,
signatureType
:
'incomeTax'
,
customerUrl
:
'/customer/query'
customerUrl
:
'/customer/query'
};
};
config
.
lockKeys
=
{
config
.
lockKeys
=
{
fecthHub
:
'URANUS.IT.HUBS.LOCK'
,
fecthHub
:
'URANUS.IT.HUBS.LOCK'
,
fecteToken
:
'URANUS.IT.TOKEN.LOCK'
,
fecteToken
:
'URANUS.IT.TOKEN.LOCK'
,
token
:
'URANUS.IT.TOKEN'
,
token
:
'URANUS.IT.TOKEN'
,
fecthParnters
:
'URANUS.PARNTERS.LOCK'
,
fecthParnters
:
'URANUS.PARNTERS.LOCK'
,
taskPrefix
:
'URANUS.TASK'
,
taskPrefix
:
'URANUS.TASK'
,
};
};
config
.
sequelize
=
{
config
.
sequelize
=
{
datasources
:
[{
datasources
:
[{
// 东八时区
// 东八时区
timezone
:
'+08:00'
,
timezone
:
'+08:00'
,
delegate
:
'model'
,
delegate
:
'model'
,
baseDir
:
'model'
,
baseDir
:
'model'
,
dialect
:
'mysql'
,
dialect
:
'mysql'
,
host
:
'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com'
,
host
:
'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com'
,
database
:
'data_service_dev'
,
database
:
'data_service_dev'
,
username
:
'hexin'
,
username
:
'hexin'
,
password
:
'gYUHszn9#q'
,
password
:
'gYUHszn9#q'
,
port
:
3306
,
port
:
3306
,
}],
}],
};
};
// config.GJJ_OpenAPI = {
// config.GJJ_OpenAPI = {
// appKey: '60670203E411FD62BA9E953CFB73F881',
// appKey: '60670203E411FD62BA9E953CFB73F881',
// appSecret: '0BDD1ECC147503C477563E5C1438C366D70E4F80',
// appSecret: '0BDD1ECC147503C477563E5C1438C366D70E4F80',
// };
// };
config
.
callbackUrl
=
'https://dev-nginx.jianbing.com/taxh5/callback'
;
config
.
callbackUrl
=
'https://dev-nginx.jianbing.com/taxh5/callback'
;
return
config
;
return
config
;
};
};
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