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