|  | @@ -28,13 +28,13 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              if (data.pwd === '' && info) {
 | 
	
		
			
				|  |  |                  await this.deleteById(info.id);
 | 
	
		
			
				|  |  |              } else if (data.pwd !== '' && !info) {
 | 
	
		
			
				|  |  | -                const ledgerInfo = await this.ctx.service.ledger.getDataByCondition({ ledger_id: data.ledger_id });
 | 
	
		
			
				|  |  | -                if (ledgerInfo) {
 | 
	
		
			
				|  |  | -                    data.lid = ledgerInfo.id;
 | 
	
		
			
				|  |  | -                    const result = await this.db.insert(this.tableName, data);
 | 
	
		
			
				|  |  | -                    data.id = result.insertId;
 | 
	
		
			
				|  |  | -                    data.sign_path = null;
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                // const ledgerInfo = await this.ctx.service.ledger.getDataByCondition({ ledger_id: data.ledger_id });
 | 
	
		
			
				|  |  | +                // if (ledgerInfo) {
 | 
	
		
			
				|  |  | +                //     data.lid = ledgerInfo.id;
 | 
	
		
			
				|  |  | +                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);
 |