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

订单号

parent 6efc49dc
Pipeline #5855 passed with stage
in 2 seconds
......@@ -3,16 +3,11 @@
const Controller = require('egg').Controller;
class PartnerController extends Controller {
// constructor(ctx) {
// super(ctx);
// }
async show() {
const { ctx, service } = this;
const { appKey } = ctx.params;
const ret = await service.partner.fetchTheme(appKey);
if (ret && ret.id === appKey) {
if (ret && ret.appKey === appKey) {
ctx.success(ret);
return;
}
......
......@@ -28,8 +28,12 @@ module.exports = () => {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
redisThemePrefix: 'URANUS.It.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.It.PARNTERS.SCRIPTS',
fetchAgreements: '/chaos/agreements',
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 = {
......
......@@ -32,11 +32,11 @@ module.exports = () => {
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements',
fetchInfo: '/chaos/partner',
redisThemePrefix: 'URANUS.IT.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.IT.PARNTERS.SCRIPTS',
redisAgreementsPrefix: 'URANUS.IT.PARNTERS.Agreements',
fetchInfo: '/chaos/partner',
redisInfoPrefix:'URANUS.IT.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