소스 검색

讯飞测试流程过滤

devin.zhu@doverfs.com 8 달 전
부모
커밋
90144abc0d
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      Ai.AgentServer/Controllers/FccController.cs

+ 10 - 10
Ai.AgentServer/Controllers/FccController.cs

@@ -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));