guhongwei il y a 2 ans
Parent
commit
9476516cc7
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      app/controller/system/config/.config.js
  2. 1 1
      app/model/system/config.js

+ 2 - 2
app/controller/system/config/.config.js

@@ -1,6 +1,6 @@
 module.exports = {
   create: {
-    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader_rule'],
+    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader'],
   },
   destroy: {
     params: ['!id'],
@@ -8,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ['!id'],
-    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader_rule'],
+    requestBody: ['reward_day', 'title', 'config', 'agree', 'bottom_title', 'bottom_menu','leader'],
   },
   show: {
     parameters: {

+ 1 - 1
app/model/system/config.js

@@ -20,7 +20,7 @@ const config = {
   bottom_title: { type: String, required: false, zh: '底部加载数据结束的文字提示' }, //
   bottom_menu: { type: Object, zh: '底部菜单' },
   reward_day: { type: Number, zh: '提现日期', default: 14 },
-  leader_rule: { type: String, required: false  , zh: '团长规则' }, // 富文本 
+  leader: { type: Array, required: false  , zh: '团长规则' }, // explain,rule 
 };
 const schema = new Schema(config, { toJSON: { getters: true, virtuals: true } });
 schema.index({ id: 1 });