同步
This commit is contained in:
@@ -88,10 +88,10 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet]
|
[HttpPost]
|
||||||
public Result SendSMS(SMSQueueModel test)
|
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();
|
return Result.Success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,12 +25,6 @@
|
|||||||
<param name="code"></param>
|
<param name="code"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</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)">
|
<member name="M:Yi.Framework.ApiMicroservice.Controllers.AccountController.Email(System.String)">
|
||||||
<summary>
|
<summary>
|
||||||
传入邮箱,需要先到数据库判断该邮箱是否被人注册过,到userservice写mail_exist方法,还有接口别忘了。这个接口不需要洞,只需要完成userservice写mail_exist与接口即可
|
传入邮箱,需要先到数据库判断该邮箱是否被人注册过,到userservice写mail_exist方法,还有接口别忘了。这个接口不需要洞,只需要完成userservice写mail_exist与接口即可
|
||||||
|
|||||||
@@ -43,9 +43,10 @@ namespace Yi.Framework.SMSProcessor
|
|||||||
HttpClient _HttpClient = new HttpClient();
|
HttpClient _HttpClient = new HttpClient();
|
||||||
this._RabbitMQInvoker.RegistReciveAction(rabbitMQConsumerModel, message =>
|
this._RabbitMQInvoker.RegistReciveAction(rabbitMQConsumerModel, message =>
|
||||||
{
|
{
|
||||||
|
var data= Common.Helper.JsonHelper.StrToObj<SMSQueueModel>(message);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_aliyunSMSInvoker.SendCode("1234","15949688315");
|
_aliyunSMSInvoker.SendCode(data.code, data.phone);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user