Commit 75e2b4b3 authored by 何娜's avatar 何娜

log

parent e9a10e60
Pipeline #5864 passed with stage
in 2 seconds
...@@ -50,6 +50,7 @@ class OrderController extends Controller { ...@@ -50,6 +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);
ctx.logger.info(appKey, ',appKeyInfo,', appKeyInfo);
if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableIt === true)) { if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableIt === true)) {
return ctx.fail('未开通此服务'); return ctx.fail('未开通此服务');
} }
......
...@@ -25,7 +25,7 @@ module.exports = () => { ...@@ -25,7 +25,7 @@ module.exports = () => {
}; };
config.partnerAPI = { config.partnerAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1', host: 'https://uat-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/theme', fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts', fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements', fetchAgreements: '/chaos/agreements',
...@@ -37,7 +37,7 @@ module.exports = () => { ...@@ -37,7 +37,7 @@ module.exports = () => {
}; };
config.scriptsAPI = { config.scriptsAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1', host: 'https://uat-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',
......
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