Commit 54036187 authored by 何娜's avatar 何娜

配置

parent cec2e8f7
Pipeline #5824 passed with stage
in 2 seconds
# hf_h5_server
# it_h5_server
公积金H5认证服务
......
......@@ -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.enableHf === true)) {
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableIt === 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.enableHfView === true)) {
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableItView === true)) {
return ctx.fail('未开通此服务');
}
const data = await service.order.getOneByOrderId(orderId);
......
......@@ -10,7 +10,7 @@ class ScriptController extends Controller {
if (appKey) {
const ret = await service.partner.fetchInfo(appKey);
if (ret) {
limitScriptsList = ret.hfExcludeScripts;
limitScriptsList = ret.itExcludeScripts;
}
}
let data = await service.scripts.fetchScripts();
......
......@@ -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 = {
......
......@@ -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 = {
......
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