Commit be29302b by 庄冰

电话加密

parent 50cedf17
......@@ -9,6 +9,19 @@ class NeedinfoService extends ServiceBase {
this.fqUtilsSve = system.getObject("service.common.fqUtilsSve");
// this.launchchannelDao = system.getObject("dao.configmag.launchchannelDao");
}
async findAndCountAll(obj) {
const apps = await this.dao.findAndCountAll(obj);
if(apps && apps.results && apps.results.rows){
for(var i=0;i<apps.results.rows.length;i++){
if(apps.results.rows[i] && apps.results.rows[i].dataValues && apps.results.rows[i].dataValues.contact_mobile){
var mobile = apps.results.rows[i].dataValues.contact_mobile;
mobile = mobile.substr(0, 3) + '****' + mobile.substr(7);
apps.results.rows[i].dataValues.contact_mobile = mobile;
}
}
}
return apps;
}
//推送聚合页需求至蜂擎
async pushAggregationNeedInfo2fq(ab){
if(!ab || !ab.id){
......
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