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;
}