'use strict'; /** * 版本数据模型 * * @author CaiAoLin * @date 2017/10/25 * @version */ const auditConst = require('../const/audit').stage; module.exports = app => { class PaymentRptAudit extends app.BaseService { /** * 构造函数 * * @param {Object} ctx - egg全局变量 * @return {void} */ constructor(ctx) { super(ctx); this.tableName = 'payment_rpt_audit'; } async updateSignatureMsg(td_id, uid, signature_msg) { return await this.db.update(this.tableName, { sign_time: new Date(), signature_msg: JSON.stringify(signature_msg) }, { where: { td_id, uid } }); } } return PaymentRptAudit; };