Commit ac1f68bc by Sxy

feat: 给固定电话加密

parent 4bcbad36
...@@ -87,6 +87,9 @@ function buildValue(value, cryptStr) { ...@@ -87,6 +87,9 @@ function buildValue(value, cryptStr) {
} }
}) })
} }
if (newValue.proposerInfo.businessInformation) {
newValue.proposerInfo.businessInformation.fixedTelephone = cryptStr(newValue.proposerInfo.businessInformation.fixedTelephone)
}
} }
if (newValue.shareholderData) { if (newValue.shareholderData) {
newValue.shareholderData = newValue.shareholderData.map(val => { newValue.shareholderData = newValue.shareholderData.map(val => {
......
...@@ -113,6 +113,9 @@ function buildProposerInfo(value, cryptStr) { ...@@ -113,6 +113,9 @@ function buildProposerInfo(value, cryptStr) {
} }
}) })
} }
if (newValue.businessInformation) {
newValue.businessInformation.fixedTelephone = cryptStr(newValue.businessInformation.fixedTelephone)
}
return newValue; return newValue;
} else { } else {
......
...@@ -4,6 +4,7 @@ const settings = require("../../../../config/settings"); ...@@ -4,6 +4,7 @@ const settings = require("../../../../config/settings");
const moment = require("moment"); const moment = require("moment");
const System = require("../../../system"); const System = require("../../../system");
const pushTx = require("../../../utils/totxClient") const pushTx = require("../../../utils/totxClient")
const { encryptStr, decryptStr } = system;
class DeliverService extends ServiceBase { class DeliverService extends ServiceBase {
constructor() { constructor() {
...@@ -335,7 +336,10 @@ class DeliverService extends ServiceBase { ...@@ -335,7 +336,10 @@ class DeliverService extends ServiceBase {
await pushTx.pushChangeOrder(pushTx.TXSTATUS.POSTING, result.delivery_code, { await pushTx.pushChangeOrder(pushTx.TXSTATUS.POSTING, result.delivery_code, {
qualification: result.qualification, qualification: result.qualification,
recipientInfo: pobj.recipientInfo recipientInfo: {
...pobj.recipientInfo,
phone: encryptStr(pobj.recipientInfo.phone)
}
}); });
......
...@@ -235,6 +235,9 @@ function buildValue(value, cryptStr) { ...@@ -235,6 +235,9 @@ function buildValue(value, cryptStr) {
} }
}) })
} }
if (newValue.proposerInfo.businessInformation) {
newValue.proposerInfo.businessInformation.fixedTelephone = cryptStr(newValue.proposerInfo.businessInformation.fixedTelephone)
}
} }
if (newValue.shareholderData) { if (newValue.shareholderData) {
newValue.shareholderData = newValue.shareholderData.map(val => { newValue.shareholderData = newValue.shareholderData.map(val => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment