Commit 54036187 authored by 何娜's avatar 何娜

配置

parent cec2e8f7
Pipeline #5824 passed with stage
in 2 seconds
# hf_h5_server # it_h5_server
公积金H5认证服务 公积金H5认证服务
......
...@@ -50,7 +50,7 @@ class OrderController extends Controller { ...@@ -50,7 +50,7 @@ class OrderController extends Controller {
ctx.validate(this.createRule); ctx.validate(this.createRule);
let { appKey, userId, notifyUrl, backUrl, orderId } = ctx.request.body; let { appKey, userId, notifyUrl, backUrl, orderId } = ctx.request.body;
const appKeyInfo = await service.partner.fetchInfo(appKey); const appKeyInfo = await service.partner.fetchInfo(appKey);
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableHf === true)) { if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableIt === true)) {
return ctx.fail('未开通此服务'); return ctx.fail('未开通此服务');
} }
const object = { const object = {
...@@ -112,7 +112,7 @@ class OrderController extends Controller { ...@@ -112,7 +112,7 @@ class OrderController extends Controller {
const { ctx, service } = this; const { ctx, service } = this;
const { appKey, orderId } = ctx.params; const { appKey, orderId } = ctx.params;
const appKeyInfo = await service.partner.fetchInfo(appKey); const appKeyInfo = await service.partner.fetchInfo(appKey);
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableHfView === true)) { if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableItView === true)) {
return ctx.fail('未开通此服务'); return ctx.fail('未开通此服务');
} }
const data = await service.order.getOneByOrderId(orderId); const data = await service.order.getOneByOrderId(orderId);
......
...@@ -10,7 +10,7 @@ class ScriptController extends Controller { ...@@ -10,7 +10,7 @@ class ScriptController extends Controller {
if (appKey) { if (appKey) {
const ret = await service.partner.fetchInfo(appKey); const ret = await service.partner.fetchInfo(appKey);
if (ret) { if (ret) {
limitScriptsList = ret.hfExcludeScripts; limitScriptsList = ret.itExcludeScripts;
} }
} }
let data = await service.scripts.fetchScripts(); let data = await service.scripts.fetchScripts();
......
...@@ -28,8 +28,8 @@ module.exports = () => { ...@@ -28,8 +28,8 @@ module.exports = () => {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1', host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/partners/theme', fetchTheme: '/chaos/partners/theme',
fetchScripts: '/chaos/partners/scripts', fetchScripts: '/chaos/partners/scripts',
redisThemePrefix: 'URANUS.HF.PARNTERS.THEME', redisThemePrefix: 'URANUS.It.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.HF.PARNTERS.SCRIPTS', redisScriptsPrefix: 'URANUS.It.PARNTERS.SCRIPTS',
}; };
config.scriptsAPI = { config.scriptsAPI = {
......
...@@ -32,11 +32,11 @@ module.exports = () => { ...@@ -32,11 +32,11 @@ module.exports = () => {
fetchTheme: '/chaos/partners/theme', fetchTheme: '/chaos/partners/theme',
fetchScripts: '/chaos/partners/scripts', fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements', fetchAgreements: '/chaos/agreements',
redisThemePrefix: 'URANUS.HF.PARNTERS.THEME', redisThemePrefix: 'URANUS.IT.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.HF.PARNTERS.SCRIPTS', redisScriptsPrefix: 'URANUS.IT.PARNTERS.SCRIPTS',
redisAgreementsPrefix: 'URANUS.HF.PARNTERS.Agreements', redisAgreementsPrefix: 'URANUS.IT.PARNTERS.Agreements',
fetchInfo: '/chaos/partner', fetchInfo: '/chaos/partner',
redisInfoPrefix:'URANUS.HF.PARNTERS.Info', redisInfoPrefix:'URANUS.IT.PARNTERS.Info',
}; };
config.scriptsAPI = { config.scriptsAPI = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment