Prechádzať zdrojové kódy

添加活动菜单,添加活动网关配置,修改nginx-unit配置

asd123a20 3 rokov pred
rodič
commit
802e9a2e23

+ 2 - 2
service-activity/config/config.default.js

@@ -28,8 +28,8 @@ module.exports = appInfo => {
       enable: false,
     },
   };
-  config.nginxUnit = 'http://192.168.0.45:18080/config/routes/';
-  config.nginxFilePath = 'http://192.168.0.45:8083';
+  config.nginxUnit = 'http://192.168.3.45:18080/config/routes/';
+  config.nginxFilePath = 'http://192.168.3.45:8084';
   config.cluster = {
     listen: {
       port: 9015,

+ 35 - 0
service-gateway/config/activity.js

@@ -0,0 +1,35 @@
+'use strict';
+
+module.exports = [
+  // 商城
+  {
+    url: '/api/activity/task/create',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/activity/task/update',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/activity/task/delete/:id',
+    jwt: true,
+    issuer: [ 'naf' ],
+    log: true,
+  },
+  {
+    url: '/api/activity/task/query',
+    jwt: false,
+    issuer: [ 'naf' ],
+    log: false,
+  },
+  {
+    url: '/api/activity/task/stopTask',
+    jwt: false,
+    issuer: [ 'naf' ],
+    log: false,
+  },
+];

+ 9 - 0
service-naf/config/menu.js

@@ -166,5 +166,14 @@ const data = [
     parentCode: null,
     icon: 'el-icon-star-on',
   },
+  // 活动管理
+  {
+    module: 'activity',
+    path: '/activity/home',
+    title: '活动管理',
+    code: 'activityHome',
+    parentCode: null,
+    icon: 'el-icon-star-on',
+  },
 ];
 module.exports.data = data;