laiguoran %!s(int64=2) %!d(string=hai) anos
pai
achega
7871b4703c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/payment_tender.js

+ 2 - 2
app/service/payment_tender.js

@@ -25,9 +25,9 @@ module.exports = app => {
             }
             const typeValues = [];
             const projectInfo = await this.ctx.service.project.getDataById(this.ctx.session.sessionProject.id);
-            const modes = projectInfo.payment_setting ? JSON.parse(projectInfo.payment_setting) : _.cloneDeep(paymentConst.setting_modes);
+            const modes = projectInfo.payment_setting ? JSON.parse(projectInfo.payment_setting) : this._.cloneDeep(paymentConst.setting_modes);
             for (const m in paymentConst.setting_modes) {
-                if (!modes[m]) modes[m] = _.cloneDeep(paymentConst.setting_modes[m]);
+                if (!modes[m]) modes[m] = this._.cloneDeep(paymentConst.setting_modes[m]);
                 if (modes[m].checked) {
                     typeValues.push(modes[m].value);
                 }