Browse Source

Fix the issue where the backend responds with "ocpp2.0.1" when the charger claims to support two protocols.

Jessica Tseng 1 năm trước cách đây
mục cha
commit
4e72944e5a

+ 1 - 1
EVCB_OCPP.WSServer/Service/WsService/OcppWebsocketService.cs

@@ -41,7 +41,7 @@ public static partial class AppExtention
 
 public class OcppWebsocketService : WebsocketService<WsClientData>
 {
-    public static List<string> protocals = new List<string>() { "", "ocpp1.6", "ocpp2.0.1" };
+    public static List<string> protocals = new List<string>() {  "ocpp1.6"};
 
     private readonly IConfiguration configuration;
     private readonly IMainDbService mainDbService;

+ 3 - 1
Prod_Build.bat

@@ -1,5 +1,7 @@
 for /f %%i in ('git rev-parse --short HEAD') do set ssha=%%i
 FOR /f %%i IN ( version.txt ) DO set version=%%i
-
+git push
+git tag -a %version%
+git push --follow-tags
 docker build ./ -t evdevcontainerregistry.azurecr.io/server:%version% --label "git-commit=%ssha%"
 docker push evdevcontainerregistry.azurecr.io/server:%version%

+ 1 - 1
version.txt

@@ -1 +1 @@
-TestJ_v1.0.2
+TestJ_v1.0.4