|  | @@ -987,30 +987,30 @@ module.exports = {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      async sendAliSms(userId, type, judge, code, data = {}) {
 | 
	
		
			
				|  |  | -        const mobiles = [];
 | 
	
		
			
				|  |  | -        if (!userId || (userId instanceof Array && userId.length === 0)) return;
 | 
	
		
			
				|  |  | -        const smsUser = await this.ctx.service.projectAccount.getAllDataByCondition({ where: { id: userId } });
 | 
	
		
			
				|  |  | -        for (const su of smsUser) {
 | 
	
		
			
				|  |  | -            if (!su.auth_mobile || su.auth_mobile === '') continue;
 | 
	
		
			
				|  |  | -            if (!su.sms_type || su.sms_type === '') continue;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            const smsType = JSON.parse(su.sms_type);
 | 
	
		
			
				|  |  | -            if (smsType[type] && smsType[type].indexOf(judge) !== -1) {
 | 
	
		
			
				|  |  | -                mobiles.push(su.auth_mobile);
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        if (mobiles.length > 0) {
 | 
	
		
			
				|  |  | -            const sms = new SMS(this.ctx);
 | 
	
		
			
				|  |  | -            const tenderName = await sms.contentChange(this.ctx.tender.data.name);
 | 
	
		
			
				|  |  | -            const projectName = await sms.contentChange(this.ctx.tender.info.deal_info.buildName);
 | 
	
		
			
				|  |  | -            const param = {
 | 
	
		
			
				|  |  | -                project: projectName,
 | 
	
		
			
				|  |  | -                number: tenderName,
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            const postParam = Object.assign(param, data);
 | 
	
		
			
				|  |  | -            sms.aliSend(mobiles, postParam, code);
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        // const mobiles = [];
 | 
	
		
			
				|  |  | +        // if (!userId || (userId instanceof Array && userId.length === 0)) return;
 | 
	
		
			
				|  |  | +        // const smsUser = await this.ctx.service.projectAccount.getAllDataByCondition({ where: { id: userId } });
 | 
	
		
			
				|  |  | +        // for (const su of smsUser) {
 | 
	
		
			
				|  |  | +        //     if (!su.auth_mobile || su.auth_mobile === '') continue;
 | 
	
		
			
				|  |  | +        //     if (!su.sms_type || su.sms_type === '') continue;
 | 
	
		
			
				|  |  | +        //
 | 
	
		
			
				|  |  | +        //     const smsType = JSON.parse(su.sms_type);
 | 
	
		
			
				|  |  | +        //     if (smsType[type] && smsType[type].indexOf(judge) !== -1) {
 | 
	
		
			
				|  |  | +        //         mobiles.push(su.auth_mobile);
 | 
	
		
			
				|  |  | +        //     }
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  | +        //
 | 
	
		
			
				|  |  | +        // if (mobiles.length > 0) {
 | 
	
		
			
				|  |  | +        //     const sms = new SMS(this.ctx);
 | 
	
		
			
				|  |  | +        //     const tenderName = await sms.contentChange(this.ctx.tender.data.name);
 | 
	
		
			
				|  |  | +        //     const projectName = await sms.contentChange(this.ctx.tender.info.deal_info.buildName);
 | 
	
		
			
				|  |  | +        //     const param = {
 | 
	
		
			
				|  |  | +        //         project: projectName,
 | 
	
		
			
				|  |  | +        //         number: tenderName,
 | 
	
		
			
				|  |  | +        //     };
 | 
	
		
			
				|  |  | +        //     const postParam = Object.assign(param, data);
 | 
	
		
			
				|  |  | +        //     sms.aliSend(mobiles, postParam, code);
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |