Commit 6efc49dc authored by 何娜's avatar 何娜

主题配置

parent 1bdc63c5
Pipeline #5843 passed with stage
in 2 seconds
......@@ -24,19 +24,6 @@ class TaskController extends Controller {
taskId: {type: 'string', format: /\d+/},
};
this.getDataRule = {
sign: 'string',
params: {
type: 'object',
rule: {
appKey: 'string',
timestamp: 'string',
token: 'string',
orderId: 'string',
},
},
};
this.cityConfigRule = {
sign: 'string',
params: {
......@@ -53,9 +40,9 @@ class TaskController extends Controller {
async create() {
const {ctx, service} = this;
ctx.validate(this.createRule);
const {scriptId, orderId, userId} = ctx.request.body;
const {scriptId, orderId} = ctx.request.body;
const taskId = await service.task.create({scriptId});
await service.order.update({orderId, cityId: scriptId, taskId, userId});
await service.order.update({orderId, cityId: scriptId, taskId});
await service.cache.set({
key: taskId,
value: {status: 'init', note: {message: 'init'}},
......
......@@ -34,9 +34,9 @@ module.exports = app => {
itRouter.post('/getToken', controller.token.partnerToken); // 合作方获取token
itRouter.post('/getOrderSn', controller.order.partnerOrder); // 合作方获取orderSn
itRouter.post('/getorderSn', controller.order.partnerOrder); // 合作方获取orderSn
itRouter.post('/getCity', controller.task.cityConfigs); // 获取城市配置
itRouter.post('/getCityConfig', controller.task.cityConfigs); // 获取城市配置
itRouter.post('/getData', controller.order.partnerData); // 合作方拉数据
itRouter.get('/orderData/:appKey/:orderId', controller.order.orderShow);//获取展示页面数据
......
......@@ -26,7 +26,7 @@ module.exports = () => {
config.partnerAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/partners/theme',
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
redisThemePrefix: 'URANUS.It.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.It.PARNTERS.SCRIPTS',
......
......@@ -29,7 +29,7 @@ module.exports = () => {
config.partnerAPI = {
host: process.env.PARTNERAPI_HOST,
fetchTheme: '/chaos/partners/theme',
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements',
redisThemePrefix: 'URANUS.IT.PARNTERS.THEME',
......
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