lrf 2 years ago
parent
commit
f8bc6425da
2 changed files with 3 additions and 2 deletions
  1. 2 2
      app/controller/system/config/.config.js
  2. 1 0
      app/model/system/config.js

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

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

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

@@ -19,6 +19,7 @@ const config = {
   agree: { type: String, required: false, zh: '用户协议' }, // 富文本
   bottom_title: { type: String, required: false, zh: '底部加载数据结束的文字提示' }, //
   bottom_menu: { type: Object, zh: '底部菜单' },
+  reward_day: { type: Number, zh: '提现日期', default: 14 },
 };
 const schema = new Schema(config, { toJSON: { getters: true, virtuals: true } });
 schema.index({ id: 1 });