瀏覽代碼

修复bug

laiguoran 4 年之前
父節點
當前提交
b37c5ee5d1
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
         }