Commit df3ef69c by 庄冰

wts

parent f77f3bc2
......@@ -15,11 +15,31 @@ class UtilsTmAliyunService extends AppServiceBase {
if(!ab.email){
return system.getResult(null, "邮箱地址不能为空");
}
if(!ab.type){
return system.getResult(null, "邮件类型不能为空");
}
var mailCilent = system.getObject("util.mailClient");
var sendRes = await mailCilent.sendMsg(ab.email,"商标委托书","see","商标委托书",null,null,[
{filename: '商标委托书',path: 'http://gsb-zc.oss-cn-beijing.aliyuncs.com/tmwtu2020041811188516gcjhvjwts.docx'}
]);
return system.getResultSuccess(sendRes);
var url = "";
if(ab.type=="1"){
var sendRes = await mailCilent.sendMsg(ab.email,"商标代理委托书","see","商标代理委托书",null,null,[
{filename: '商标代理委托书',path: 'http://gsb-zc.oss-cn-beijing.aliyuncs.com/igirl_channel_tmwtsdemo001.doc'}
]);
return system.getResultSuccess(sendRes);
}else if(ab.type=="2"){
var sendRes = await mailCilent.sendMsg(ab.email,"阿里云商标代理委托书","see","阿里云商标代理委托书",null,null,[
{filename: '阿里云商标代理委托书',path: 'http://gsb-zc.oss-cn-beijing.aliyuncs.com/tmwtu2020041811188516gcjhvjwts.docx'}
]);
return system.getResultSuccess(sendRes);
}else if(ab.type=="3"){
var sendRes = await mailCilent.sendMsg(ab.email,"阿里云声明文件","see","阿里云声明文件",null,null,[
{filename: '阿里云声明文件',path: 'http://gsb-zc.oss-cn-beijing.aliyuncs.com/tm_smwj202004181626725onjdaliyun.doc'}
]);
return system.getResultSuccess(sendRes);
}else{
return system.getResult(null, "邮件类型错误");
}
}
async tmCreateApplicant(pobj) {//创建商标申请人信息
var verifyResult = await this.opAliyunRpcVerifyParam(pobj);
......
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