guhongwei 2 gadi atpakaļ
vecāks
revīzija
56e3dd784e
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      app/controller/user/config/.cashOut.js
  2. 1 1
      app/model/user/cashOut.js

+ 1 - 1
app/controller/user/config/.cashOut.js

@@ -1,7 +1,7 @@
 
 module.exports = {
   create: {
-    requestBody: ['!money','!customer','!apply_time','!apply_reason','deal_person','exam_time','!exam_reason','!status'],
+    requestBody: ['!money','!customer','!apply_time','!apply_reason','deal_person','exam_time','exam_reason','!status'],
   },
   destroy: {
     params: ["!id"],

+ 1 - 1
app/model/user/cashOut.js

@@ -10,7 +10,7 @@ const cashOut = {
   apply_reason: { type: String, required: true, zh: '申请理由' }, //
   deal_person: { type: String, required: false, zh: '审核处理人', ref: 'User.Admin' }, //
   exam_time: { type: String, required: false, zh: '审核时间' }, //
-  exam_reason: { type: String, required: true, zh: '审核理由' }, //
+  exam_reason: { type: String, required: false, zh: '审核理由' }, //
   status: { type: String, required: true, default: '0', zh: '审核状态' }, // 字典表:withdrawal_exam_status
 };
 const schema = new Schema(cashOut, { toJSON: { getters: true, virtuals: true } });