Browse Source

修复bug

laiguoran 4 years ago
parent
commit
b37c5ee5d1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/service/ledger_cooperation.js

+ 2 - 0
app/service/ledger_cooperation.js

@@ -30,9 +30,11 @@ module.exports = app => {
             } else if (data.pwd !== '' && !info) {
                 const result = await this.db.insert(this.tableName, data);
                 data.id = result.insertId;
+                data.sign_path = null;
             } else if (data.pwd !== '' && info) {
                 data.id = info.id;
                 await this.db.update(this.tableName, data);
+                data.sign_path = info.sign_path;
             }
             return data;
         }