Browse Source

fix :
Go server :1.后台服务端启动程序
2.nginx启动脚本

zzf 1 year ago
parent
commit
c913bdc3ea
5 changed files with 7 additions and 3 deletions
  1. BIN
      AIT/VehicleClassification.exe
  2. 1 1
      AIT/api/user.go
  3. 2 1
      run.vbs
  4. 1 1
      start.bat
  5. 3 0
      startnginx.bat

BIN
AIT/VehicleClassification.exe


+ 1 - 1
AIT/api/user.go

@@ -122,7 +122,7 @@ func (u *UserService) ResetPassword(c *gin.Context) {
 		response.Failed(errmsg.UserPasswordResetError+result.Error.Error(), c)
 		return
 	}
-	if result.RowsAffected > 0 {
+	if result.RowsAffected >= 0 {
 		response.Success(errmsg.UserPasswordResetSuccess, result.RowsAffected, c)
 		return
 	}

+ 2 - 1
run.vbs

@@ -1,3 +1,4 @@
 Set ws = CreateObject("Wscript.Shell")
 ws.run "cmd /c start.bat",0
-ws.run "cmd /c startpy.bat",0
+ws.run "cmd /c startpy.bat",0
+ws.run "cmd /c startnginx.bat",0

+ 1 - 1
start.bat

@@ -1,3 +1,3 @@
 @echo off
 cd AIT
-VehicleClassification.exe > go.log
+VehicleClassification.exe > AIT.log

+ 3 - 0
startnginx.bat

@@ -0,0 +1,3 @@
+@echo off
+cd nginx
+start nginxgroup.exe