|
@@ -1286,8 +1286,6 @@ module.exports = app => {
|
|
|
},
|
|
|
};
|
|
|
await this.transaction.update(this.tableName, change_update, options);
|
|
|
- await this.transaction.commit();
|
|
|
- result = true;
|
|
|
const sms = new SMS(this.ctx);
|
|
|
const code = await sms.contentChange(changeData.code);
|
|
|
const shenpiUrl = await this.ctx.helper.urlToShort(
|
|
@@ -1317,6 +1315,8 @@ module.exports = app => {
|
|
|
template: wxConst.template.change,
|
|
|
wx_data: wechatData,
|
|
|
});
|
|
|
+ await this.transaction.commit();
|
|
|
+ result = true;
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
await this.transaction.rollback();
|