|
@@ -37,7 +37,7 @@ namespace Ai.AgentServer.Controllers
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
[HttpPost(Name = "FuelCommon")]
|
|
|
- public async Task<FuelReponse> SendCommon(FuelSendRequest body,bool test=false)
|
|
|
+ public async Task<FuelReponse> SendCommon(FuelSendRequest body)
|
|
|
{
|
|
|
if (string.IsNullOrWhiteSpace(body.Type))
|
|
|
{
|
|
@@ -45,16 +45,16 @@ namespace Ai.AgentServer.Controllers
|
|
|
}
|
|
|
_logger.LogInformation($"油机命令传输{SendCommon}:{JsonConvert.SerializeObject(body)}");
|
|
|
FuelReponse reponse = null;
|
|
|
- if (test)
|
|
|
- {
|
|
|
- reponse = _server.GetFackData(body);
|
|
|
- }
|
|
|
- else {
|
|
|
- //讯飞调用
|
|
|
- reponse = await _server.SendCommon(body);
|
|
|
- }
|
|
|
-
|
|
|
+ //if (test)
|
|
|
+ //{
|
|
|
+ // reponse = _server.GetFackData(body);
|
|
|
+ //}
|
|
|
+ //else {
|
|
|
|
|
|
+ //}
|
|
|
+ //讯飞调用
|
|
|
+ reponse = await _server.SendCommon(body);
|
|
|
+
|
|
|
////格灵调用
|
|
|
//reponse.MQTT_Public=await _mqttServer.PublicMessage(body.GLId,body.Type, body.BuildDto(2));
|
|
|
|