This commit is contained in:
橙子
2021-11-04 15:38:38 +08:00
parent 9378cd937c
commit 7f3fcf32b0
3 changed files with 4 additions and 9 deletions

View File

@@ -88,10 +88,10 @@ namespace Yi.Framework.ApiMicroservice.Controllers
}
[HttpGet]
[HttpPost]
public Result SendSMS(SMSQueueModel test)
{
_rabbitMQInvoker.Send(new Common.IOCOptions.RabbitMQConsumerModel() { ExchangeName=RabbitConst.SMS_Exchange,QueueName=RabbitConst.SMS_Queue_Send} );
_rabbitMQInvoker.Send(new Common.IOCOptions.RabbitMQConsumerModel() { ExchangeName=RabbitConst.SMS_Exchange,QueueName=RabbitConst.SMS_Queue_Send} ,JsonHelper.ObjToStr(test));
return Result.Success();
}

View File

@@ -25,12 +25,6 @@
<param name="code"></param>
<returns></returns>
</member>
<member name="M:Yi.Framework.ApiMicroservice.Controllers.AccountController.SendMail">
<summary>
发送邮件
</summary>
<returns></returns>
</member>
<member name="M:Yi.Framework.ApiMicroservice.Controllers.AccountController.Email(System.String)">
<summary>
传入邮箱需要先到数据库判断该邮箱是否被人注册过到userservice写mail_exist方法还有接口别忘了。这个接口不需要洞只需要完成userservice写mail_exist与接口即可

View File

@@ -43,9 +43,10 @@ namespace Yi.Framework.SMSProcessor
HttpClient _HttpClient = new HttpClient();
this._RabbitMQInvoker.RegistReciveAction(rabbitMQConsumerModel, message =>
{
var data= Common.Helper.JsonHelper.StrToObj<SMSQueueModel>(message);
try
{
_aliyunSMSInvoker.SendCode("1234","15949688315");
_aliyunSMSInvoker.SendCode(data.code, data.phone);
return true;
}