Compare commits

..

No commits in common. "559f48d0185e2b7fd6fd84a4c28a402e7a260765" and "3b364a545eea80ae3b3cc61f3f5b89116f54e8f6" have entirely different histories.

16 changed files with 65 additions and 19 deletions

View File

@ -1,5 +1,7 @@
@echo off
for /f %%i in (programs.txt) do (
start "%%i" cmd /c "build_sub.bat %%i"
call shell/build.bat
if %errorcode% neq 0 (
pause
)

View File

@ -2,4 +2,10 @@ set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
call build.bat
@echo off
call shell/build.bat
if %errorcode% neq 0 (
pause
)

View File

@ -1,6 +1,6 @@
@echo off
for /f "tokens=*" %%a in (programs.txt) do (
for /f "tokens=*" %%a in (shell/programs.txt) do (
if exist "%%a\*.log" del /q "%%a\*.log"
if exist "%%a\*.log.*" del /q "%%a\*.log.*"

View File

@ -1,6 +1,6 @@
@echo off
for /f %%i in (programs.txt) do (
for /f %%i in (shell/programs.txt) do (
taskkill /F /IM %%i.exe
)

Binary file not shown.

Binary file not shown.

36
deploy.bat Normal file
View File

@ -0,0 +1,36 @@
@echo off
set work_path=%cd%
git checkout develop
call shell/gen_data.bat
call shell/gen_go.bat
call shell/update_public.bat
git add .
git commit -m "update develop"
git checkout release
git merge develop
git add .
git reset public
git commit -m "update release"
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go env -w GO111MODULE=off
call shell/build.bat
rem copy
cd %work_path%
call shell/update_deploy.bat
git checkout develop
pause

View File

@ -406,10 +406,7 @@ func (this *SceneStateStartFortuneOx) OnPlayerOp(s *base.Scene, p *base.Player,
var data assemble.GameEnd
if err == nil {
data = assemble.DataToCli(Response).(assemble.GameEnd)
var respinStatus int
if data.Results[0].ArrSpins[0].Special != nil {
respinStatus = data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
}
respinStatus := data.Results[0].ArrSpins[0].Special.(SpinLock).ReSpinStatus
if respinStatus == 0 || respinStatus == 1 {
//第一次触发或者正常模式
//logger.Logger.Trace("=============addcoin1111 ", -data.TotalBet)

View File

@ -10,7 +10,7 @@ go build
xlsx2proto.exe
cd ../../
%protoc% --proto_path=. --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=../../ protocol/server/pbdata.proto
%protoc% --proto_path=./protocol/server --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=../../ pbdata.proto
cd ./tools/xlsx2binary
go build

View File

@ -101,7 +101,6 @@ func (TagCode) EnumDescriptor() ([]byte, []int) {
return file_protocol_webapi_webapi_proto_rawDescGZIP(), []int{0}
}
// 保持和 shop.proto 中的 OpResultCode 一样
type ExchangeCreateCode int32
const (

7
shell/build.bat Normal file
View File

@ -0,0 +1,7 @@
@echo off
for /f %%i in (shell/programs.txt) do (
call shell/build_sub.bat %%i
)
echo "build complete!"

View File

@ -1,11 +1,10 @@
@echo off
cd %1
echo ========= Build %1 =========
go fmt
go vet
go build -v
if %errorlevel% neq 0 (
echo Build failed %1.
pause
)
set errorcode=1
)
cd ..

View File

@ -2,7 +2,7 @@ set GODEBUG=gctrace=1
@echo off
setlocal enabledelayedexpansion
for /f "tokens=*" %%a in (programs.txt) do (
for /f "tokens=*" %%a in (shell/programs.txt) do (
set program=%%a/%%a.exe
if exist "!program!" (

View File

@ -4,12 +4,12 @@ set deployDir=".\deploy"
xcopy .\data\* %deployDir%\data\ /s /e /y
for /f "tokens=*" %%a in (programs.txt) do (
for /f "tokens=*" %%a in (shell/programs.txt) do (
xcopy .\%%a\%%a %deployDir% /y
del .\%%a\%%a
)
for /f "tokens=*" %%f in (exclude.txt) do (
for /f "tokens=*" %%f in (shell/exclude.txt) do (
if exist "%deployDir%\data\%%f" (del "%deployDir%\data\%%f")
)