Commit 9a13b017 authored by 何娜's avatar 何娜

订单号

parent 6efc49dc
Pipeline #5855 passed with stage
in 2 seconds
...@@ -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;
} }
......
...@@ -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 = {
......
...@@ -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 = {
......
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