From 7f3fcf32b067b02ad38746f432bfe6d975105d9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com>
Date: Thu, 4 Nov 2021 15:38:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/AccountController.cs | 4 ++--
Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml | 6 ------
Yi.Framework/Yi.Framework.SMSProcessor/SendWorker.cs | 3 ++-
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs
index 258168fc..be00833b 100644
--- a/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs
+++ b/Yi.Framework/Yi.Framework.ApiMicroservice/Controllers/AccountController.cs
@@ -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();
}
diff --git a/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml b/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml
index 321734fd..4f149f51 100644
--- a/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml
+++ b/Yi.Framework/Yi.Framework.ApiMicroservice/SwaggerDoc.xml
@@ -25,12 +25,6 @@
-
-
- 发送邮件
-
-
-
传入邮箱,需要先到数据库判断该邮箱是否被人注册过,到userservice写mail_exist方法,还有接口别忘了。这个接口不需要洞,只需要完成userservice写mail_exist与接口即可
diff --git a/Yi.Framework/Yi.Framework.SMSProcessor/SendWorker.cs b/Yi.Framework/Yi.Framework.SMSProcessor/SendWorker.cs
index 34519780..a2c942e3 100644
--- a/Yi.Framework/Yi.Framework.SMSProcessor/SendWorker.cs
+++ b/Yi.Framework/Yi.Framework.SMSProcessor/SendWorker.cs
@@ -43,9 +43,10 @@ namespace Yi.Framework.SMSProcessor
HttpClient _HttpClient = new HttpClient();
this._RabbitMQInvoker.RegistReciveAction(rabbitMQConsumerModel, message =>
{
+ var data= Common.Helper.JsonHelper.StrToObj(message);
try
{
- _aliyunSMSInvoker.SendCode("1234","15949688315");
+ _aliyunSMSInvoker.SendCode(data.code, data.phone);
return true;
}