添加后台代理代码
This commit is contained in:
BIN
codes/agent/tools/CallerService.exe
Normal file
BIN
codes/agent/tools/CallerService.exe
Normal file
Binary file not shown.
BIN
codes/agent/tools/CallerService.exe.bak
Normal file
BIN
codes/agent/tools/CallerService.exe.bak
Normal file
Binary file not shown.
6
codes/agent/tools/CallerService.exe.json
Normal file
6
codes/agent/tools/CallerService.exe.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"execute":"C:/webroot/tools/HttpRequest.exe",
|
||||
"parameter":[],
|
||||
"loop":"1",
|
||||
"interval":"60000"
|
||||
}
|
||||
21
codes/agent/tools/HTTPRequest.ini
Normal file
21
codes/agent/tools/HTTPRequest.ini
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
##################################################################
|
||||
|
||||
; 新的配置格式
|
||||
[global]
|
||||
; 请求总数
|
||||
count=1
|
||||
|
||||
[request0]
|
||||
; 请求类型, 只支持get和post
|
||||
type=post
|
||||
; 请求地址, 必须带上协议头(http://或https://)
|
||||
address=http://localhost/ext/Synchronize.php
|
||||
; 请求参数, 多个参数用&连接, 无需加入?
|
||||
parameter=processcount=200
|
||||
; 请求发送间隔, 单位毫秒
|
||||
interval=60000
|
||||
; 线程数
|
||||
thread=1
|
||||
|
||||
BIN
codes/agent/tools/HttpRequest.bak.zip
Normal file
BIN
codes/agent/tools/HttpRequest.bak.zip
Normal file
Binary file not shown.
BIN
codes/agent/tools/HttpRequest.exe
Normal file
BIN
codes/agent/tools/HttpRequest.exe
Normal file
Binary file not shown.
BIN
codes/agent/tools/HttpRequest.exe.bak
Normal file
BIN
codes/agent/tools/HttpRequest.exe.bak
Normal file
Binary file not shown.
9
codes/agent/tools/HttpRequest.exe.json
Normal file
9
codes/agent/tools/HttpRequest.exe.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"method":"post",
|
||||
"address":"https://dlapi.xpxman.cn/ext/Synchronize.php",
|
||||
"parameter":"processcount=200",
|
||||
"interval":"1000",
|
||||
"loop":"0"
|
||||
}
|
||||
]
|
||||
BIN
codes/agent/tools/HttpRequest.out
Normal file
BIN
codes/agent/tools/HttpRequest.out
Normal file
Binary file not shown.
9
codes/agent/tools/HttpRequest.out.json
Normal file
9
codes/agent/tools/HttpRequest.out.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"method":"请求方式(如:post或者get)",
|
||||
"address":"请求地址(需要带上http或https协议头;如:https://www.baidu.com)",
|
||||
"parameter":"请求参数(页面需要附加的参数,标准key=value形式;如:p1=v1&p2=v2)",
|
||||
"interval":"时间间隔,单位毫秒",
|
||||
"loop":"是否需要重复发送(0:否;非0:是;)"
|
||||
}
|
||||
]
|
||||
BIN
codes/agent/tools/HttpRequest.x64.exe
Normal file
BIN
codes/agent/tools/HttpRequest.x64.exe
Normal file
Binary file not shown.
BIN
codes/agent/tools/HttpRequest.x86.exe
Normal file
BIN
codes/agent/tools/HttpRequest.x86.exe
Normal file
Binary file not shown.
BIN
codes/agent/tools/HttpRequestService.exe
Normal file
BIN
codes/agent/tools/HttpRequestService.exe
Normal file
Binary file not shown.
9
codes/agent/tools/HttpRequestService.exe.json
Normal file
9
codes/agent/tools/HttpRequestService.exe.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"method":"post",
|
||||
"address":"https://dlapi.xpxman.cn/ext/Synchronize.php",
|
||||
"parameter":"processcount=200",
|
||||
"interval":"60000",
|
||||
"loop":"1"
|
||||
}
|
||||
]
|
||||
17
codes/agent/tools/HttpRequestService.exe.json.bak
Normal file
17
codes/agent/tools/HttpRequestService.exe.json.bak
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"method":"post",
|
||||
"address":"https://dlapi.xpxman.cn/ext/Synchronize.php",
|
||||
"parameter":"processcount=200",
|
||||
"interval":"60000",
|
||||
"loop":"1"
|
||||
},
|
||||
|
||||
{
|
||||
"method":"post",
|
||||
"address":"https://proxytest.tscce.cn/api/ext/Synchronize.php",
|
||||
"parameter":"processcount=200",
|
||||
"interval":"60000",
|
||||
"loop":"1"
|
||||
}
|
||||
]
|
||||
BIN
codes/agent/tools/HttpRequestService.out
Normal file
BIN
codes/agent/tools/HttpRequestService.out
Normal file
Binary file not shown.
9
codes/agent/tools/HttpRequestService.out.json
Normal file
9
codes/agent/tools/HttpRequestService.out.json
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"method":"请求方式(如:post或者get)",
|
||||
"address":"请求地址(需要带上http或https协议头;如:https://www.baidu.com)",
|
||||
"parameter":"请求参数(页面需要附加的参数,标准key=value形式;如:p1=v1&p2=v2)",
|
||||
"interval":"时间间隔,单位毫秒",
|
||||
"loop":"是否需要重复发送(0:否;非0:是;)"
|
||||
}
|
||||
]
|
||||
BIN
codes/agent/tools/HttpRequestService.x64.exe
Normal file
BIN
codes/agent/tools/HttpRequestService.x64.exe
Normal file
Binary file not shown.
BIN
codes/agent/tools/HttpRequestService.x86.exe
Normal file
BIN
codes/agent/tools/HttpRequestService.x86.exe
Normal file
Binary file not shown.
39
codes/agent/tools/autoreport.bat
Normal file
39
codes/agent/tools/autoreport.bat
Normal file
@@ -0,0 +1,39 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set "URL=http://localhost/ext/SynchronizeReportData.php"
|
||||
set "TARGET_HOUR=04"
|
||||
set "TARGET_MINUTE=00"
|
||||
set "TIMEOUT=10"
|
||||
|
||||
set "TARGET_HOUR_PAD=0%TARGET_HOUR%"
|
||||
set "TARGET_HOUR_PAD=%TARGET_HOUR_PAD:~-2%"
|
||||
set "TARGET_MINUTE_PAD=0%TARGET_MINUTE%"
|
||||
set "TARGET_MINUTE_PAD=%TARGET_MINUTE_PAD:~-2%"
|
||||
set "TARGET_TIME=%TARGET_HOUR_PAD%:%TARGET_MINUTE_PAD%"
|
||||
|
||||
set "LAST_RUN_DATE="
|
||||
|
||||
:loop
|
||||
for /f %%I in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMddHHmmss"') do set "NOW=%%I"
|
||||
set "CUR_DATE=!NOW:~0,8!"
|
||||
set "CUR_HOUR=!NOW:~8,2!"
|
||||
set "CUR_MIN=!NOW:~10,2!"
|
||||
|
||||
if "!CUR_HOUR!"=="%TARGET_HOUR_PAD%" if "!CUR_MIN!"=="%TARGET_MINUTE_PAD%" (
|
||||
if not "!LAST_RUN_DATE!"=="!CUR_DATE!" (
|
||||
for /f %%T in ('powershell -NoProfile -Command "Get-Date -Format \"yyyy-MM-dd HH:mm:ss\""') do set "STAMP=%%T"
|
||||
set "STATUS="
|
||||
for /f %%S in ('curl -s -o nul -w "%%{http_code}" --max-time %TIMEOUT% "%URL%" 2^>^&1') do set "STATUS=%%S"
|
||||
if defined STATUS (
|
||||
echo !STAMP! !TARGET_TIME! !STATUS!
|
||||
) else (
|
||||
echo !STAMP! !TARGET_TIME! ERROR
|
||||
)
|
||||
set "LAST_RUN_DATE=!CUR_DATE!"
|
||||
timeout /t 65 >nul
|
||||
)
|
||||
) else (
|
||||
timeout /t 5 >nul
|
||||
)
|
||||
goto loop
|
||||
238
codes/agent/tools/autorun - bak.cmd
Normal file
238
codes/agent/tools/autorun - bak.cmd
Normal file
@@ -0,0 +1,238 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: 停止同步服务
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
::net stop CallerService
|
||||
net stop HttpRequestService
|
||||
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games0791!!"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games0791!!"
|
||||
set Database_record="grade_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="games"
|
||||
set Password_owner="Games0791!!"
|
||||
set Database_owner="agent_db"
|
||||
set Database_owner_temp="agent_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="agent_db"
|
||||
set Database_temp_temp="agent_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
:export
|
||||
echo 开始导出游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_base_%%t.sql" del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_base_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_base% -P%Hostport_base% -u%Username_base% -p%Password_base% %Database_base% %%t > "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导出完成
|
||||
|
||||
echo 开始导出游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_record_%%t.sql" del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_record_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_record% -P%Hostport_record% -u%Username_record% -p%Password_record% %Database_record% %%t > "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导出完成
|
||||
|
||||
:import
|
||||
echo 开始导入游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
:synchronize
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% -e%ExecuteCommand_1% %Database_owner%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
if %NeedSaveToTemp% equ 0 goto convertdata
|
||||
|
||||
:savetotemp
|
||||
echo 开始导入游戏基础信息脚本到临时库
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本到临时库
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
|
||||
echo 执行同步脚本
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% -e%ExecuteCommand_1% %Database_temp%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
:convertdata
|
||||
::"%~dp0MySqlSynchronize.exe"
|
||||
|
||||
:clean
|
||||
echo 删除脚本文件
|
||||
for %%t in (%ExportTable_base%) do del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
for %%t in (%ExportTable_record%) do del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
echo 脚本删除完成
|
||||
|
||||
:sync_recorddata
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步报表
|
||||
|
||||
:sync_reportdata
|
||||
|
||||
echo 开始同步报表数据(http://localhos/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
echo 开始生成报表数据(http://localhos/ext/autotask.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
|
||||
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 备份数据库
|
||||
:backup_database
|
||||
for /f "tokens=1-3 delims=/-, " %%a in ('echo/%date%') do (
|
||||
set yy=%%a & set mm=%%b & set dd=%%c
|
||||
)
|
||||
set /a dd=100%dd%%%100,mm=100%mm%%%100
|
||||
set /a z=14-mm,z/=12,y=yy+4800-z,m=mm+12*z-3,j=153*m+2
|
||||
set /a j=j/5+dd+y*365+y/4-y/100+y/400-2472633
|
||||
|
||||
set /a j=j-7
|
||||
|
||||
set /a i=j,a=i+2472632,b=4*a+3,b/=146097,c=-b*146097,c/=4,c+=a
|
||||
set /a d=4*c+3,d/=1461,e=-1461*d,e/=4,e+=c,m=5*e+2,m/=153,dd=153*m+2,dd/=5
|
||||
set /a dd=-dd+e+1,mm=-m/10,mm*=12,mm+=m+3,yy=b*100+d-4800+m/10
|
||||
(if %mm% LSS 10 set mm=0%mm%)&(if %dd% LSS 10 set dd=0%dd%)
|
||||
|
||||
set fdate=%yy%-%mm%-%dd%
|
||||
echo %fdate%
|
||||
|
||||
set mysqldump=C:\xampp\mysql\bin\mysqldump.exe
|
||||
set mysql=C:\xampp\mysql\bin\mysql.exe
|
||||
set winrar=C:\Program Files\Bandizip\Bandizip.exe
|
||||
set needupload=0
|
||||
|
||||
|
||||
|
||||
echo ================
|
||||
|
||||
echo 开始备份mysql(agent_db)
|
||||
"%mysql%" -h"rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com" -P"3306" -u"games" -p"Games0791!!" -e"truncate table player_grade" agent_db
|
||||
"%mysql%" -h"rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com" -P"3306" -u"games" -p"Games0791!!" -e"truncate table coin_rebate" agent_db
|
||||
if exist "%~dp0agent_db_%yy%%mm%%dd%.sql" del "%~dp0agent_db_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com" -P"3306" -u"games" -p"Games0791!!" -R agent_db > "%~dp0agent_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
echo 备份mysql(agent_db)结束
|
||||
|
||||
echo ================
|
||||
|
||||
::: 压缩备份文件
|
||||
::%~d0
|
||||
::cd "%~dp0"
|
||||
::if exist "%~dp0database_%yy%%mm%%dd%.rar" del "%~dp0database_%yy%%mm%%dd%.rar"
|
||||
::"%winrar%" a "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" "tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::if %needupload% NEQ 0 (
|
||||
:: ::: 上传压缩文件
|
||||
:: "%~dp0NetworkTool.x64.exe" -st "2" -rt "2" -hn "120.76.157.63" -hp "80" -on "/dbbackup/upload.php" -rd "/" -rf "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" -lf "%~dp0database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
:: ::: 删除压缩文件
|
||||
:: :::del "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
::)
|
||||
|
||||
::: 删除备份的文件
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp"
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log"
|
||||
if exist "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0agent_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0agent_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0agent_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0agent_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
|
||||
::: 备份完毕
|
||||
:exit
|
||||
|
||||
::: 恢复同步服务
|
||||
::"%~dp0CallerService.exe" -start
|
||||
::net start CallerService HttpRequestService
|
||||
net start HttpRequestService
|
||||
echo on
|
||||
92
codes/agent/tools/autorun - sync-only.cmd
Normal file
92
codes/agent/tools/autorun - sync-only.cmd
Normal file
@@ -0,0 +1,92 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: 停止同步服务
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
::net stop CallerService
|
||||
net stop HttpRequestService
|
||||
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games0791!!"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games0791!!"
|
||||
set Database_record="grade_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="games"
|
||||
set Password_owner="Games0791!!"
|
||||
set Database_owner="agent_db"
|
||||
set Database_owner_temp="agent_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="agent_db"
|
||||
set Database_temp_temp="agent_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步报表
|
||||
|
||||
:sync_reportdata
|
||||
|
||||
echo 开始同步报表数据(http://localhos/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
echo 开始生成报表数据(http://localhos/ext/autotask.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
|
||||
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
|
||||
|
||||
::: 恢复同步服务
|
||||
::"%~dp0CallerService.exe" -start
|
||||
::net start CallerService HttpRequestService
|
||||
net start HttpRequestService
|
||||
echo on
|
||||
92
codes/agent/tools/autorun.cmd
Normal file
92
codes/agent/tools/autorun.cmd
Normal file
@@ -0,0 +1,92 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: 停止同步服务
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
::net stop CallerService
|
||||
net stop HttpRequestService
|
||||
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games0791!!"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rm-bp1749tfxu2rpq670lo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games0791!!"
|
||||
set Database_record="grade_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="rm-bp1btyuwq77591x0jpo.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="games"
|
||||
set Password_owner="Games0791!!"
|
||||
set Database_owner="agent_db"
|
||||
set Database_owner_temp="agent_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="agent_db"
|
||||
set Database_temp_temp="agent_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步报表
|
||||
|
||||
:sync_reportdata
|
||||
|
||||
echo 开始同步报表数据(http://localhos/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
echo 开始生成报表数据(http://localhos/ext/autotask.php)
|
||||
::"%~dp0HttpRequest.x64.exe" -type post -address "http://localhost/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
|
||||
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
|
||||
|
||||
::: 恢复同步服务
|
||||
::"%~dp0CallerService.exe" -start
|
||||
::net start CallerService HttpRequestService
|
||||
net start HttpRequestService
|
||||
echo on
|
||||
140
codes/agent/tools/autotask.cmd
Normal file
140
codes/agent/tools/autotask.cmd
Normal file
@@ -0,0 +1,140 @@
|
||||
for %%p in (
|
||||
2018-01-01,
|
||||
2018-01-02,
|
||||
2018-01-03,
|
||||
2018-01-04,
|
||||
2018-01-05,
|
||||
2018-01-06,
|
||||
2018-01-07,
|
||||
2018-01-08,
|
||||
2018-01-09,
|
||||
2018-01-10,
|
||||
2018-01-11,
|
||||
2018-01-12,
|
||||
2018-01-13,
|
||||
2018-01-14,
|
||||
2018-01-15,
|
||||
2018-01-16,
|
||||
2018-01-17,
|
||||
2018-01-18,
|
||||
2018-01-19,
|
||||
2018-01-20,
|
||||
2018-01-21,
|
||||
2018-01-22,
|
||||
2018-01-23,
|
||||
2018-01-24,
|
||||
2018-01-25,
|
||||
2018-01-26,
|
||||
2018-01-27,
|
||||
2018-01-28,
|
||||
2018-01-29,
|
||||
2018-01-30,
|
||||
2018-01-31,
|
||||
2018-02-01,
|
||||
2018-02-02,
|
||||
2018-02-03,
|
||||
2018-02-04,
|
||||
2018-02-05,
|
||||
2018-02-06,
|
||||
2018-02-07,
|
||||
2018-02-08,
|
||||
2018-02-09,
|
||||
2018-02-10,
|
||||
2018-02-11,
|
||||
2018-02-12,
|
||||
2018-02-13,
|
||||
2018-02-14,
|
||||
2018-02-15,
|
||||
2018-02-16,
|
||||
2018-02-17,
|
||||
2018-02-18,
|
||||
2018-02-19,
|
||||
2018-02-20,
|
||||
2018-02-21,
|
||||
2018-02-22,
|
||||
2018-02-23,
|
||||
2018-02-24,
|
||||
2018-02-25,
|
||||
2018-02-26,
|
||||
2018-02-27,
|
||||
2018-02-28,
|
||||
2018-03-01,
|
||||
2018-03-02,
|
||||
2018-03-03,
|
||||
2018-03-04,
|
||||
2018-03-05,
|
||||
2018-03-06,
|
||||
2018-03-07,
|
||||
2018-03-08,
|
||||
2018-03-09,
|
||||
2018-03-10,
|
||||
2018-03-11,
|
||||
2018-03-12,
|
||||
2018-03-13,
|
||||
2018-03-14,
|
||||
2018-03-15,
|
||||
2018-03-16,
|
||||
2018-03-17,
|
||||
2018-03-18,
|
||||
2018-03-19,
|
||||
2018-03-20,
|
||||
2018-03-21,
|
||||
2018-03-22,
|
||||
2018-03-23,
|
||||
2018-03-24,
|
||||
2018-03-25,
|
||||
2018-03-26,
|
||||
2018-03-27,
|
||||
2018-03-28,
|
||||
2018-03-29,
|
||||
2018-03-30,
|
||||
2018-03-31,
|
||||
2018-04-01,
|
||||
2018-04-02,
|
||||
2018-04-03,
|
||||
2018-04-04,
|
||||
2018-04-05,
|
||||
2018-04-06,
|
||||
2018-04-07,
|
||||
2018-04-08,
|
||||
2018-04-09,
|
||||
2018-04-10,
|
||||
2018-04-11,
|
||||
2018-04-12,
|
||||
2018-04-13,
|
||||
2018-04-14,
|
||||
2018-04-15,
|
||||
2018-04-16,
|
||||
2018-04-17,
|
||||
2018-04-18,
|
||||
2018-04-19,
|
||||
2018-04-20,
|
||||
2018-04-21,
|
||||
2018-04-22,
|
||||
2018-04-23,
|
||||
2018-04-24,
|
||||
2018-04-25,
|
||||
2018-04-26,
|
||||
2018-04-27,
|
||||
2018-04-28,
|
||||
2018-04-29,
|
||||
2018-04-30,
|
||||
2018-05-01,
|
||||
2018-05-02,
|
||||
2018-05-03
|
||||
) do (
|
||||
::: ts已修改2021 xpxman
|
||||
:::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/SynchronizeReportData.php" -parameter "sync_date=%%p" -interval 1000 -thread 1 -loop 0
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://localhos/ext/SynchronizeReportData.php" -parameter "sync_date=%%p" -interval 1000 -thread 1 -loop 0
|
||||
)
|
||||
|
||||
exit
|
||||
|
||||
truncate table ct_report_player_room_open;
|
||||
truncate table ct_report_player_roomcard_use;
|
||||
truncate table ct_report_player_roomcard_record;
|
||||
truncate table ct_report_player_star_record;
|
||||
truncate table ct_report_player_buy_record;
|
||||
truncate table ct_report_sales_roomcard_buy;
|
||||
truncate table ct_report_sales_charge_record;
|
||||
truncate table ct_report_sales_login_record;
|
||||
250
codes/agent/tools/bak/autorun.test.cmd
Normal file
250
codes/agent/tools/bak/autorun.test.cmd
Normal file
@@ -0,0 +1,250 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp16sbf0l9cavp7h9o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="develop"
|
||||
set Password_base="develop123!@#"
|
||||
set Database_base="youle_games"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rm-bp16sbf0l9cavp7h9o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="develop"
|
||||
set Password_record="develop123!@#"
|
||||
set Database_record="youle_games"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="localhost"
|
||||
set Hostport_owner="3309"
|
||||
set Username_owner="root"
|
||||
set Password_owner="root_root"
|
||||
set Database_owner="game_db"
|
||||
set Database_owner_temp="game_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="game_db"
|
||||
set Database_temp_temp="game_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
:export
|
||||
echo 开始导出游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_base_%%t.sql" del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_base_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_base% -P%Hostport_base% -u%Username_base% -p%Password_base% %Database_base% %%t > "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导出完成
|
||||
|
||||
echo 开始导出游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_record_%%t.sql" del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_record_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_record% -P%Hostport_record% -u%Username_record% -p%Password_record% %Database_record% %%t > "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导出完成
|
||||
|
||||
:import
|
||||
echo 开始导入游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
:synchronize
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% -e%ExecuteCommand_1% %Database_owner%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
if %NeedSaveToTemp% equ 0 goto convertdata
|
||||
|
||||
:savetotemp
|
||||
echo 开始导入游戏基础信息脚本到临时库
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本到临时库
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
|
||||
echo 执行同步脚本
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% -e%ExecuteCommand_1% %Database_temp%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
:convertdata
|
||||
::"%~dp0MySqlSynchronize.exe"
|
||||
|
||||
:clean
|
||||
echo 删除脚本文件
|
||||
for %%t in (%ExportTable_base%) do del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
for %%t in (%ExportTable_record%) do del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
echo 脚本删除完成
|
||||
|
||||
:sync_recorddata
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步报表
|
||||
:sync_reportdata
|
||||
echo 开始同步报表数据(https://proxytest.tscce.cn/api/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://proxytest.tscce.cn/api/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0
|
||||
echo 开始生成报表数据(https://proxytest.tscce.cn/api/ext/autotask.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://proxytest.tscce.cn/api/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0
|
||||
goto exit
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 备份数据库
|
||||
:backup_database
|
||||
for /f "tokens=1-3 delims=/-, " %%a in ('echo/%date%') do (
|
||||
set yy=%%a & set mm=%%b & set dd=%%c
|
||||
)
|
||||
set /a dd=100%dd%%%100,mm=100%mm%%%100
|
||||
set /a z=14-mm,z/=12,y=yy+4800-z,m=mm+12*z-3,j=153*m+2
|
||||
set /a j=j/5+dd+y*365+y/4-y/100+y/400-2472633
|
||||
|
||||
set /a j=j-7
|
||||
|
||||
set /a i=j,a=i+2472632,b=4*a+3,b/=146097,c=-b*146097,c/=4,c+=a
|
||||
set /a d=4*c+3,d/=1461,e=-1461*d,e/=4,e+=c,m=5*e+2,m/=153,dd=153*m+2,dd/=5
|
||||
set /a dd=-dd+e+1,mm=-m/10,mm*=12,mm+=m+3,yy=b*100+d-4800+m/10
|
||||
(if %mm% LSS 10 set mm=0%mm%)&(if %dd% LSS 10 set dd=0%dd%)
|
||||
|
||||
set fdate=%yy%-%mm%-%dd%
|
||||
echo %fdate%
|
||||
|
||||
set mysqldump=C:\xampp\mysql\bin\mysqldump.exe
|
||||
set mysql=C:\xampp\mysql\bin\mysql.exe
|
||||
set winrar=C:\Program Files\WinRAR\rar.exe
|
||||
set needupload=0
|
||||
|
||||
::: 开始备份oracle(dbcenter)
|
||||
if exist "%~dp0dbcenter_%yy%%mm%%dd%.dmp" del "%~dp0dbcenter_%yy%%mm%%dd%.dmp"
|
||||
if exist "%~dp0dbcenter_%yy%%mm%%dd%.log" del "%~dp0dbcenter_%yy%%mm%%dd%.log"
|
||||
|
||||
set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
||||
set ORACLE_HOME=D:\app\kingsoft\virtual\product\12.2.0\dbhome_1
|
||||
exp '"/ as sysdba"' file="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" log="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" grants=y full=y statistics=none
|
||||
::: 备份oracle(dbcenter)结束
|
||||
|
||||
::: 开始备份mysql(tswldb)
|
||||
if exist "%~dp0tswldb_%yy%%mm%%dd%.sql" del "%~dp0tswldb_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --opt -hlocalhost -P3309 -uroot -proot_root -R tswldb > "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::: 备份mysql(tswldb)结束
|
||||
|
||||
::: 开始备份mysql(syhd)
|
||||
if exist "%~dp0syhd_%yy%%mm%%dd%.sql" del "%~dp0syhd_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --opt -hlocalhost -P3309 -uroot -proot@admin -R syhd > "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::: 备份mysql(syhd)结束
|
||||
|
||||
::: 开始备份mysql(game_db)
|
||||
if exist "%~dp0game_db_localhost_%yy%%mm%%dd%.sql" del "%~dp0game_db_localhost_%yy%%mm%%dd%.sql"
|
||||
"%mysql%" -h"localhost" -P"3309" -uroot -proot_root -e"truncate table player_grade" game_db
|
||||
"%mysqldump%" --opt -h"localhost" -P"3309" -uroot -proot_root -R game_db > "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::: 备份mysql(game_db)结束
|
||||
|
||||
|
||||
::: 开始备份mysql(youlehudong)
|
||||
if exist "%~dp0youlehudong_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --opt -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -R youlehudong > "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::: 备份mysql(youlehudong)结束
|
||||
|
||||
::: 开始备份mysql(game_db)
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table player_grade" game_db
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table coin_rebate" game_db
|
||||
if exist "%~dp0game_db_%yy%%mm%%dd%.sql" del "%~dp0game_db_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --opt -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -R game_db > "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::: 备份mysql(game_db)结束
|
||||
|
||||
|
||||
::: 压缩备份文件
|
||||
%~d0
|
||||
cd "%~dp0"
|
||||
if exist "%~dp0database_%yy%%mm%%dd%.rar" del "%~dp0database_%yy%%mm%%dd%.rar"
|
||||
"%winrar%" a "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" "tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if %needupload% NEQ 0 (
|
||||
::: 上传压缩文件
|
||||
"%~dp0NetworkTool.x64.exe" -st "2" -rt "2" -hn "120.76.157.63" -hp "80" -on "/dbbackup/upload.php" -rd "/" -rf "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" -lf "%~dp0database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
::: 删除压缩文件
|
||||
:::del "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
)
|
||||
|
||||
::: 删除备份的文件
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp"
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log"
|
||||
if exist "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
|
||||
::: 备份完毕
|
||||
:exit
|
||||
|
||||
echo on
|
||||
pause
|
||||
301
codes/agent/tools/bak/autorun_bak.cmd
Normal file
301
codes/agent/tools/bak/autorun_bak.cmd
Normal file
@@ -0,0 +1,301 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: 停止同步服务
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
net stop CallerService
|
||||
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp1x3i28se22s9z75o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games2017@)!&"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rr-bp1x2415jy37d8mu1o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games2017@)!%&"
|
||||
set Database_record="game_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="yunuser"
|
||||
set Password_owner="Yun_User"
|
||||
set Database_owner="game_db"
|
||||
set Database_owner_temp="game_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="game_db"
|
||||
set Database_temp_temp="game_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
:export
|
||||
echo 开始导出游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_base_%%t.sql" del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_base_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_base% -P%Hostport_base% -u%Username_base% -p%Password_base% %Database_base% %%t > "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导出完成
|
||||
|
||||
echo 开始导出游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_record_%%t.sql" del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_record_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_record% -P%Hostport_record% -u%Username_record% -p%Password_record% %Database_record% %%t > "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导出完成
|
||||
|
||||
:import
|
||||
echo 开始导入游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
:synchronize
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% -e%ExecuteCommand_1% %Database_owner%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
if %NeedSaveToTemp% equ 0 goto convertdata
|
||||
|
||||
:savetotemp
|
||||
echo 开始导入游戏基础信息脚本到临时库
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本到临时库
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% %Database_temp_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
|
||||
|
||||
echo 执行同步脚本
|
||||
echo 执行脚本%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_temp% -P%Hostport_temp% -u%Username_temp% -p%Password_temp% -e%ExecuteCommand_1% %Database_temp%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo 脚本执行完成
|
||||
|
||||
:convertdata
|
||||
::"%~dp0MySqlSynchronize.exe"
|
||||
|
||||
:clean
|
||||
echo 删除脚本文件
|
||||
for %%t in (%ExportTable_base%) do del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
for %%t in (%ExportTable_record%) do del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
echo 脚本删除完成
|
||||
|
||||
:sync_recorddata
|
||||
echo %date% %time%
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步报表
|
||||
|
||||
:sync_reportdata
|
||||
::: ts已修改2021 xpxman
|
||||
:::echo 开始同步报表数据(https://dlapi.tscce.cn/ext/SynchronizeReportData.php)
|
||||
:::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
:::echo 开始生成报表数据(https://dlapi.tscce.cn/ext/autotask.php)
|
||||
:::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
echo 开始同步报表数据(https://dlapi.daoqijuyou77.cn/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.daoqijuyou77.cn/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
echo 开始生成报表数据(https://dlapi.daoqijuyou77.cn/ext/autotask.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.daoqijuyou77.cn/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
|
||||
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 备份数据库
|
||||
:backup_database
|
||||
for /f "tokens=1-3 delims=/-, " %%a in ('echo/%date%') do (
|
||||
set yy=%%a & set mm=%%b & set dd=%%c
|
||||
)
|
||||
set /a dd=100%dd%%%100,mm=100%mm%%%100
|
||||
set /a z=14-mm,z/=12,y=yy+4800-z,m=mm+12*z-3,j=153*m+2
|
||||
set /a j=j/5+dd+y*365+y/4-y/100+y/400-2472633
|
||||
|
||||
set /a j=j-7
|
||||
|
||||
set /a i=j,a=i+2472632,b=4*a+3,b/=146097,c=-b*146097,c/=4,c+=a
|
||||
set /a d=4*c+3,d/=1461,e=-1461*d,e/=4,e+=c,m=5*e+2,m/=153,dd=153*m+2,dd/=5
|
||||
set /a dd=-dd+e+1,mm=-m/10,mm*=12,mm+=m+3,yy=b*100+d-4800+m/10
|
||||
(if %mm% LSS 10 set mm=0%mm%)&(if %dd% LSS 10 set dd=0%dd%)
|
||||
|
||||
set fdate=%yy%-%mm%-%dd%
|
||||
echo %fdate%
|
||||
|
||||
set mysqldump=C:\xampp\mysql\bin\mysqldump.exe
|
||||
set mysql=C:\xampp\mysql\bin\mysql.exe
|
||||
set winrar=C:\Program Files\WinRAR\rar.exe
|
||||
set needupload=0
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份oracle(dbcenter)
|
||||
::if exist "%~dp0dbcenter_%yy%%mm%%dd%.dmp" del "%~dp0dbcenter_%yy%%mm%%dd%.dmp"
|
||||
::if exist "%~dp0dbcenter_%yy%%mm%%dd%.log" del "%~dp0dbcenter_%yy%%mm%%dd%.log"
|
||||
|
||||
::set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
||||
::set ORACLE_HOME=D:\app\kingsoft\virtual\product\12.2.0\dbhome_1
|
||||
::exp '"/ as sysdba"' file="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" log="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" grants=y full=y statistics=none
|
||||
::echo 备份oracle(dbcenter)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(tswldb)
|
||||
::if exist "%~dp0tswldb_%yy%%mm%%dd%.sql" del "%~dp0tswldb_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "tswldb" > ::"%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(tswldb)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(syhd)
|
||||
::if exist "%~dp0syhd_%yy%%mm%%dd%.sql" del "%~dp0syhd_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "syhd" > "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(syhd)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(game_db)
|
||||
::if exist "%~dp0game_db_localhost_%yy%%mm%%dd%.sql" del "%~dp0game_db_localhost_%yy%%mm%%dd%.sql"
|
||||
::"%mysql%" -h"localhost" -P"3309" -u"root" -p"root_root" -e"truncate table player_grade" game_db
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "game_db" > "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(game_db)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(member)
|
||||
::if exist "%~dp0member_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "member" > "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(member)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(tryout)
|
||||
::if exist "%~dp0tryout_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "tryout" > "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(tryout)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(dkb)
|
||||
::if exist "%~dp0dkb_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "dkb" > "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(dkb)结束
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo 开始备份mysql(youlehudong)
|
||||
::if exist "%~dp0youlehudong_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"tswl_2015" -p"tswl_2015" -R "youlehudong" > "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo 备份mysql(youlehudong)结束
|
||||
|
||||
echo ================
|
||||
|
||||
echo 开始备份mysql(game_db)
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table player_grade" game_db
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table coin_rebate" game_db
|
||||
if exist "%~dp0game_db_%yy%%mm%%dd%.sql" del "%~dp0game_db_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"tswl_2015" -p"tswl_2015" -R game_db > "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
echo 备份mysql(game_db)结束
|
||||
|
||||
echo ================
|
||||
|
||||
::: 压缩备份文件
|
||||
::%~d0
|
||||
::cd "%~dp0"
|
||||
::if exist "%~dp0database_%yy%%mm%%dd%.rar" del "%~dp0database_%yy%%mm%%dd%.rar"
|
||||
::"%winrar%" a "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" "tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::if %needupload% NEQ 0 (
|
||||
:: ::: 上传压缩文件
|
||||
:: "%~dp0NetworkTool.x64.exe" -st "2" -rt "2" -hn "120.76.157.63" -hp "80" -on "/dbbackup/upload.php" -rd "/" -rf "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" -lf "%~dp0database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
:: ::: 删除压缩文件
|
||||
:: :::del "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
::)
|
||||
|
||||
::: 删除备份的文件
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp"
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log"
|
||||
if exist "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
|
||||
::: 备份完毕
|
||||
:exit
|
||||
|
||||
::: 恢复同步服务
|
||||
::"%~dp0CallerService.exe" -start
|
||||
net start CallerService
|
||||
|
||||
echo on
|
||||
220
codes/agent/tools/bak/autorun_custrom.cmd
Normal file
220
codes/agent/tools/bak/autorun_custrom.cmd
Normal file
@@ -0,0 +1,220 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: ͬ<><CDAC>ս<EFBFBD><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: ֹͣͬ<D6B9><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
net stop CallerService
|
||||
|
||||
::: mysql<71><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ȫ<EFBFBD><C8AB>
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql<71><6C><EFBFBD>빤<EFBFBD><EBB9A4><EFBFBD>ļ<EFBFBD>ȫ<EFBFBD><C8AB>
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: <20><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
set Hostname_base="rm-bp1x3i28se22s9z75o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games2017@)!&"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: <20><>Ϸս<CFB7><D5BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
set Hostname_record="rr-bp1x2415jy37d8mu1o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games2017@)!%&"
|
||||
set Database_record="game_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: <20><>̨<EFBFBD><CCA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
set Hostname_owner="rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="yunuser"
|
||||
set Password_owner="Yun_User"
|
||||
set Database_owner="game_db"
|
||||
set Database_owner_temp="game_db_temp"
|
||||
|
||||
::: <20><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="game_db"
|
||||
set Database_temp_temp="game_db_temp"
|
||||
|
||||
::: <20>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>浽<EFBFBD><E6B5BD>ʱ<EFBFBD><CAB1>
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: Ҫִ<D2AA>еĽű<C4BD>
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
:::::::::::::: <20><><EFBFBD>뵼<EFBFBD><EBB5BC> -<2D><>ʼ :::::::::::::::::
|
||||
|
||||
|
||||
:::::::::::::: <20><><EFBFBD>뵼<EFBFBD><EBB5BC> - <20><><EFBFBD><EFBFBD> :::::::::::::::::
|
||||
|
||||
:synchronize
|
||||
echo ִ<>нű<D0BD>%ExecuteCommand_1%
|
||||
%ImportBinary% -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% -e%ExecuteCommand_1% %Database_owner%
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
echo <20>ű<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: ͬ<><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
:sync_reportdata
|
||||
::: ts<74><73><EFBFBD><EFBFBD>2021 xpxman
|
||||
:::echo <20><>ʼͬ<CABC><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(https://dlapi.tscce.cn/ext/SynchronizeReportData.php)
|
||||
:::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
:::echo <20><>ʼ<EFBFBD><CABC><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(https://dlapi.tscce.cn/ext/autotask.php)
|
||||
:::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
echo <20><>ʼͬ<CABC><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>daoqijuyou77.cnlapi.daoqijuyou.cn/ext/SynchronizeReportData.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.daoqijuyou77.cn/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
echo <20><>ʼ<EFBFBD><CABC><EFBFBD>ɱ<EFBFBD><C9B1><EFBFBD><EFBFBD>daoqijuyou77.cnlapi.daoqijuyou.cn/ext/autotask.php)
|
||||
"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.daoqijuyou77.cn/ext/autotask.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
|
||||
|
||||
|
||||
|
||||
:exit_reportdata
|
||||
echo %date% %time%
|
||||
|
||||
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>
|
||||
:backup_database
|
||||
for /f "tokens=1-3 delims=/-, " %%a in ('echo/%date%') do (
|
||||
set yy=%%a & set mm=%%b & set dd=%%c
|
||||
)
|
||||
set /a dd=100%dd%%%100,mm=100%mm%%%100
|
||||
set /a z=14-mm,z/=12,y=yy+4800-z,m=mm+12*z-3,j=153*m+2
|
||||
set /a j=j/5+dd+y*365+y/4-y/100+y/400-2472633
|
||||
|
||||
set /a j=j-7
|
||||
|
||||
set /a i=j,a=i+2472632,b=4*a+3,b/=146097,c=-b*146097,c/=4,c+=a
|
||||
set /a d=4*c+3,d/=1461,e=-1461*d,e/=4,e+=c,m=5*e+2,m/=153,dd=153*m+2,dd/=5
|
||||
set /a dd=-dd+e+1,mm=-m/10,mm*=12,mm+=m+3,yy=b*100+d-4800+m/10
|
||||
(if %mm% LSS 10 set mm=0%mm%)&(if %dd% LSS 10 set dd=0%dd%)
|
||||
|
||||
set fdate=%yy%-%mm%-%dd%
|
||||
echo %fdate%
|
||||
|
||||
set mysqldump=C:\xampp\mysql\bin\mysqldump.exe
|
||||
set mysql=C:\xampp\mysql\bin\mysql.exe
|
||||
set winrar=C:\Program Files\WinRAR\rar.exe
|
||||
set needupload=0
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>oracle(dbcenter)
|
||||
::if exist "%~dp0dbcenter_%yy%%mm%%dd%.dmp" del "%~dp0dbcenter_%yy%%mm%%dd%.dmp"
|
||||
::if exist "%~dp0dbcenter_%yy%%mm%%dd%.log" del "%~dp0dbcenter_%yy%%mm%%dd%.log"
|
||||
|
||||
::set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
||||
::set ORACLE_HOME=D:\app\kingsoft\virtual\product\12.2.0\dbhome_1
|
||||
::exp '"/ as sysdba"' file="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" log="%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" grants=y full=y statistics=none
|
||||
::echo <20><><EFBFBD><EFBFBD>oracle(dbcenter)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(tswldb)
|
||||
::if exist "%~dp0tswldb_%yy%%mm%%dd%.sql" del "%~dp0tswldb_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "tswldb" > ::"%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(tswldb)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(syhd)
|
||||
::if exist "%~dp0syhd_%yy%%mm%%dd%.sql" del "%~dp0syhd_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "syhd" > "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(syhd)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(game_db)
|
||||
::if exist "%~dp0game_db_localhost_%yy%%mm%%dd%.sql" del "%~dp0game_db_localhost_%yy%%mm%%dd%.sql"
|
||||
::"%mysql%" -h"localhost" -P"3309" -u"root" -p"root_root" -e"truncate table player_grade" game_db
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "game_db" > "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(game_db)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(member)
|
||||
::if exist "%~dp0member_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "member" > "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(member)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(tryout)
|
||||
::if exist "%~dp0tryout_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "tryout" > "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(tryout)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(dkb)
|
||||
::if exist "%~dp0dkb_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"localhost" -P"3309" -u"root" -p"root_root" -R "dkb" > "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(dkb)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
::echo ================
|
||||
|
||||
::echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(youlehudong)
|
||||
::if exist "%~dp0youlehudong_%yy%%mm%%dd%.sql" del "%~dp0youlehudong_%yy%%mm%%dd%.sql"
|
||||
::"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"tswl_2015" -p"tswl_2015" -R "youlehudong" > "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::echo <20><><EFBFBD><EFBFBD>mysql(youlehudong)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
echo ================
|
||||
|
||||
echo <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>mysql(game_db)
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table player_grade" game_db
|
||||
"%mysql%" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"truncate table coin_rebate" game_db
|
||||
if exist "%~dp0game_db_%yy%%mm%%dd%.sql" del "%~dp0game_db_%yy%%mm%%dd%.sql"
|
||||
"%mysqldump%" --default-character-set=utf8 --opt --lock-all-tables -x -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"tswl_2015" -p"tswl_2015" -R game_db > "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
echo <20><><EFBFBD><EFBFBD>mysql(game_db)<29><><EFBFBD><EFBFBD>
|
||||
|
||||
echo ================
|
||||
|
||||
::: ѹ<><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
||||
::%~d0
|
||||
::cd "%~dp0"
|
||||
::if exist "%~dp0database_%yy%%mm%%dd%.rar" del "%~dp0database_%yy%%mm%%dd%.rar"
|
||||
::"%winrar%" a "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" "dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" "tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" "dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
::if %needupload% NEQ 0 (
|
||||
:: ::: <20>ϴ<EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD>ļ<EFBFBD>
|
||||
:: "%~dp0NetworkTool.x64.exe" -st "2" -rt "2" -hn "120.76.157.63" -hp "80" -on "/dbbackup/upload.php" -rd "/" -rf "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar" -lf "%~dp0database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
:: ::: ɾ<><C9BE>ѹ<EFBFBD><D1B9><EFBFBD>ļ<EFBFBD>
|
||||
:: :::del "database_%date:~0,4%%date:~5,2%%date:~8,2%.rar"
|
||||
::)
|
||||
|
||||
::: ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5>ļ<EFBFBD>
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.dmp"
|
||||
if exist "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log" del "%~dp0dbcenter_%date:~0,4%%date:~5,2%%date:~8,2%.log"
|
||||
if exist "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tswldb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0syhd_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_localhost_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0youlehudong_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0game_db_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0member_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0tryout_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
if exist "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql" del "%~dp0dkb_%date:~0,4%%date:~5,2%%date:~8,2%.sql"
|
||||
|
||||
::: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
:exit
|
||||
|
||||
::: <20>ָ<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
::"%~dp0CallerService.exe" -start
|
||||
net start CallerService
|
||||
|
||||
echo on
|
||||
107
codes/agent/tools/bak/autoruntest.cmd
Normal file
107
codes/agent/tools/bak/autoruntest.cmd
Normal file
@@ -0,0 +1,107 @@
|
||||
echo off
|
||||
echo %date% %time%
|
||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
::: 同步战绩数据
|
||||
:sync_recorddata
|
||||
|
||||
:init
|
||||
::: 停止同步服务
|
||||
::"%~dp0CallerService.exe" -stop
|
||||
::net stop CallerService
|
||||
::net stop HttpRequestService
|
||||
|
||||
::: mysql导出工具文件全名
|
||||
set ExportBinary="C:\webroot\dbbackup\mysql\mysqldump.exe"
|
||||
::: mysql导入工具文件全名
|
||||
set ImportBinary="C:\webroot\dbbackup\mysql\mysql.exe"
|
||||
|
||||
|
||||
::: 游戏基础信息服务器配置
|
||||
set Hostname_base="rm-bp1x3i28se22s9z75o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_base="3306"
|
||||
set Username_base="games"
|
||||
set Password_base="Games2017@)!&"
|
||||
set Database_base="game_db"
|
||||
set ExportTable_base=player
|
||||
|
||||
::: 游戏战绩服务器配置
|
||||
set Hostname_record="rr-bp1x2415jy37d8mu1o.mysql.rds.aliyuncs.com"
|
||||
set Hostport_record="3306"
|
||||
set Username_record="games"
|
||||
set Password_record="Games2017@)!&"
|
||||
set Database_record="game_db"
|
||||
set ExportTable_record=player_grade,gold_account
|
||||
|
||||
::: 后台服务器配置
|
||||
set Hostname_owner="rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com"
|
||||
set Hostport_owner="3306"
|
||||
set Username_owner="yunuser"
|
||||
set Password_owner="Yun_User"
|
||||
set Database_owner="game_db"
|
||||
set Database_owner_temp="game_db_temp"
|
||||
|
||||
::: 临时服务器配置
|
||||
set Hostname_temp="localhost"
|
||||
set Hostport_temp="3309"
|
||||
set Username_temp="root"
|
||||
set Password_temp="root_root"
|
||||
set Database_temp="game_db"
|
||||
set Database_temp_temp="game_db_temp"
|
||||
|
||||
::: 是否需要保存到临时库
|
||||
set NeedSaveToTemp=0
|
||||
|
||||
::: 要执行的脚本
|
||||
set ExecuteCommand_1="call cp_SynchronizeSettle();"
|
||||
|
||||
::: 保证脚本输出目录一定存在
|
||||
if not exist "%~dp0script" md "%~dp0script"
|
||||
|
||||
::: 要导出的脚本文件名的前缀(后面还会加上表名)
|
||||
set ScriptnamePrefix=%~dp0script\%date:~0,4%%date:~5,2%%date:~8,2%
|
||||
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
::if exist %Scriptname% del %Scriptname%
|
||||
|
||||
:export
|
||||
echo 开始导出游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_base_%%t.sql" del "%ScriptnamePrefix%_base_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_base_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_base% -P%Hostport_base% -u%Username_base% -p%Password_base% %Database_base% %%t > "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导出完成
|
||||
|
||||
echo 开始导出游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
::: 判断脚本是否存在, 存在则删除
|
||||
if exist "%ScriptnamePrefix%_record_%%t.sql" del "%ScriptnamePrefix%_record_%%t.sql"
|
||||
|
||||
::: 循环导出脚本
|
||||
echo 导出表%%t到%ScriptnamePrefix%_record_%%t.sql
|
||||
%ExportBinary% --default-character-set=utf8 --opt -h%Hostname_record% -P%Hostport_record% -u%Username_record% -p%Password_record% %Database_record% %%t > "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导出完成
|
||||
|
||||
:import
|
||||
echo 开始导入游戏基础信息脚本
|
||||
for %%t in (%ExportTable_base%) do (
|
||||
echo 从%ScriptnamePrefix%_base_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_base_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏基础信息脚本导入完成
|
||||
|
||||
echo 开始导入游戏战绩脚本
|
||||
for %%t in (%ExportTable_record%) do (
|
||||
echo 从%ScriptnamePrefix%_record_%%t.sql导入表%%t
|
||||
%ImportBinary% --default-character-set=utf8 -h%Hostname_owner% -P%Hostport_owner% -u%Username_owner% -p%Password_owner% %Database_owner_temp% < "%ScriptnamePrefix%_record_%%t.sql"
|
||||
if %errorlevel% neq 0 goto exit_recorddata
|
||||
)
|
||||
echo 游戏战绩脚本导入完成
|
||||
::net start HttpRequestService
|
||||
46
codes/agent/tools/bak/autotask 1.cmd
Normal file
46
codes/agent/tools/bak/autotask 1.cmd
Normal file
@@ -0,0 +1,46 @@
|
||||
for %%p in (
|
||||
2018-09-01,
|
||||
2018-09-02,
|
||||
2018-09-03,
|
||||
2018-09-04,
|
||||
2018-09-05,
|
||||
2018-09-06,
|
||||
2018-09-07,
|
||||
2018-09-08,
|
||||
2018-09-09,
|
||||
2018-09-10,
|
||||
2018-09-11,
|
||||
2018-09-12,
|
||||
2018-09-13,
|
||||
2018-09-14,
|
||||
2018-09-15,
|
||||
2018-09-16,
|
||||
2018-09-17,
|
||||
2018-09-18,
|
||||
2018-09-19,
|
||||
2018-09-20,
|
||||
2018-09-21,
|
||||
2018-09-22,
|
||||
2018-09-23,
|
||||
2018-09-24,
|
||||
2018-09-25,
|
||||
2018-09-26,
|
||||
2018-09-27,
|
||||
2018-09-28,
|
||||
2018-09-29,
|
||||
2018-09-30
|
||||
) do (
|
||||
::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapi.tscce.cn/ext/autotask.php" -parameter "sync_date=%%p" -interval 1000 -thread 1 -loop 0
|
||||
"C:\webroot\dbbackup\mysql\mysql.exe" -h"rm-wz978o3vha6z26m5no.mysql.rds.aliyuncs.com" -P"3306" -u"yunuser" -p"Yun_User" -e"call ct_CreateGoldBalanceData('%%p')" "game_db"
|
||||
)
|
||||
pause
|
||||
exit
|
||||
|
||||
truncate table ct_report_player_room_open;
|
||||
truncate table ct_report_player_roomcard_use;
|
||||
truncate table ct_report_player_roomcard_record;
|
||||
truncate table ct_report_player_star_record;
|
||||
truncate table ct_report_player_buy_record;
|
||||
truncate table ct_report_sales_roomcard_buy;
|
||||
truncate table ct_report_sales_charge_record;
|
||||
truncate table ct_report_sales_login_record;
|
||||
6
codes/agent/tools/cmdcall.cmd
Normal file
6
codes/agent/tools/cmdcall.cmd
Normal file
@@ -0,0 +1,6 @@
|
||||
::"%~dp0HttpRequest.x64.exe" -type post -address "https://dlapiv3.tscce.cn/ext/SynchronizeReportData.php" -parameter "" -interval 1000 -thread 1 -loop 0 >> "%~dp0debug.txt"
|
||||
::call synchronize game ct_proccess_log
|
||||
::: ts已修改2021 xpxman
|
||||
:::"%~dp0HttpRequest.exe" "{"""method""":"""post""", """address""":"""https://dlapi.tscce.cn/ext/Synchronize.php""", """parameter""":"""", """interval""":"""1000""", """loop""":"""0"""}"
|
||||
"%~dp0HttpRequest.exe" "{"""method""":"""post""", """address""":"""http://localhost/ext/Synchronize.php""", """parameter""":"""", """interval""":"""1000""", """loop""":"""0"""}"
|
||||
pause
|
||||
660
codes/agent/tools/debug.txt
Normal file
660
codes/agent/tools/debug.txt
Normal file
@@ -0,0 +1,660 @@
|
||||
2025-10-23 09:54:21 <<<<
|
||||
2025-10-23 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-22 was updated!
|
||||
2025-10-24 09:54:22 <<<<
|
||||
2025-10-24 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-23 was updated!
|
||||
2025-10-25 09:54:23 <<<<
|
||||
2025-10-25 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-24 was updated!
|
||||
2025-10-26 09:54:22 <<<<
|
||||
2025-10-26 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-25 was updated!
|
||||
2025-10-27 09:54:22 <<<<
|
||||
2025-10-27 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-26 was updated!
|
||||
2025-10-28 09:54:22 <<<<
|
||||
2025-10-28 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-27 was updated!
|
||||
2025-10-29 09:54:22 <<<<
|
||||
2025-10-29 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-28 was updated!
|
||||
2025-10-30 09:54:22 <<<<
|
||||
2025-10-30 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-29 was updated!
|
||||
2025-10-31 09:54:22 <<<<
|
||||
2025-10-31 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-30 was updated!
|
||||
2025-11-01 09:54:22 <<<<
|
||||
2025-11-01 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-10-31 was updated!
|
||||
2025-11-02 09:54:22 <<<<
|
||||
2025-11-02 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-01 was updated!
|
||||
2025-11-03 09:54:22 <<<<
|
||||
2025-11-03 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-02 was updated!
|
||||
2025-11-04 09:54:22 <<<<
|
||||
2025-11-04 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-03 was updated!
|
||||
2025-11-05 09:54:22 <<<<
|
||||
2025-11-05 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-04 was updated!
|
||||
2025-11-06 09:54:22 <<<<
|
||||
2025-11-06 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-05 was updated!
|
||||
2025-11-07 09:54:22 <<<<
|
||||
2025-11-07 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-06 was updated!
|
||||
2025-11-08 09:54:22 <<<<
|
||||
2025-11-08 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-07 was updated!
|
||||
2025-11-09 09:54:22 <<<<
|
||||
2025-11-09 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-08 was updated!
|
||||
2025-11-10 09:54:22 <<<<
|
||||
2025-11-10 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-09 was updated!
|
||||
2025-11-11 09:54:22 <<<<
|
||||
2025-11-11 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-10 was updated!
|
||||
2025-11-12 09:54:22 <<<<
|
||||
2025-11-12 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-11 was updated!
|
||||
2025-11-13 09:54:22 <<<<
|
||||
2025-11-13 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-12 was updated!
|
||||
2025-11-14 09:54:22 <<<<
|
||||
2025-11-14 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-13 was updated!
|
||||
2025-11-15 09:54:22 <<<<
|
||||
2025-11-15 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-14 was updated!
|
||||
2025-11-16 09:54:22 <<<<
|
||||
2025-11-16 09:54:25 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-15 was updated!
|
||||
2025-11-17 09:54:22 <<<<
|
||||
2025-11-17 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-16 was updated!
|
||||
2025-11-18 09:54:22 <<<<
|
||||
2025-11-18 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-17 was updated!
|
||||
2025-11-19 09:54:22 <<<<
|
||||
2025-11-19 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-18 was updated!
|
||||
2025-11-20 09:54:22 <<<<
|
||||
2025-11-20 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-19 was updated!
|
||||
2025-11-21 09:54:22 <<<<
|
||||
2025-11-21 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-20 was updated!
|
||||
2025-11-22 09:54:22 <<<<
|
||||
2025-11-22 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-21 was updated!
|
||||
2025-11-23 09:54:22 <<<<
|
||||
2025-11-23 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-22 was updated!
|
||||
2025-11-24 09:54:22 <<<<
|
||||
2025-11-24 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-23 was updated!
|
||||
2025-11-25 09:54:22 <<<<
|
||||
2025-11-25 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-24 was updated!
|
||||
2025-11-26 09:54:22 <<<<
|
||||
2025-11-26 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-25 was updated!
|
||||
2025-11-27 09:54:22 <<<<
|
||||
2025-11-27 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-26 was updated!
|
||||
2025-11-28 09:54:23 <<<<
|
||||
2025-11-28 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-27 was updated!
|
||||
2025-11-29 09:54:22 <<<<
|
||||
2025-11-29 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-28 was updated!
|
||||
2025-11-30 09:54:22 <<<<
|
||||
2025-11-30 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-29 was updated!
|
||||
2025-12-01 09:54:22 <<<<
|
||||
2025-12-01 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-11-30 was updated!
|
||||
2025-12-02 09:54:22 <<<<
|
||||
2025-12-02 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-01 was updated!
|
||||
2025-12-03 09:54:23 <<<<
|
||||
2025-12-03 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-02 was updated!
|
||||
2025-12-04 09:54:23 <<<<
|
||||
2025-12-04 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-03 was updated!
|
||||
2025-12-05 09:54:22 <<<<
|
||||
2025-12-05 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-04 was updated!
|
||||
2025-12-06 09:54:23 <<<<
|
||||
2025-12-06 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-05 was updated!
|
||||
2025-12-07 09:54:22 <<<<
|
||||
2025-12-07 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-06 was updated!
|
||||
2025-12-08 09:54:22 <<<<
|
||||
2025-12-08 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-07 was updated!
|
||||
2025-12-09 09:54:23 <<<<
|
||||
2025-12-09 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-08 was updated!
|
||||
2025-12-10 09:54:23 <<<<
|
||||
2025-12-10 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-09 was updated!
|
||||
2025-12-11 09:54:22 <<<<
|
||||
2025-12-11 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-10 was updated!
|
||||
2025-12-12 09:54:23 <<<<
|
||||
2025-12-12 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-11 was updated!
|
||||
2025-12-13 09:54:22 <<<<
|
||||
2025-12-13 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-12 was updated!
|
||||
2025-12-14 09:54:23 <<<<
|
||||
2025-12-14 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-13 was updated!
|
||||
2025-12-15 09:54:23 <<<<
|
||||
2025-12-15 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-14 was updated!
|
||||
2025-12-16 09:54:23 <<<<
|
||||
2025-12-16 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-15 was updated!
|
||||
2025-12-17 09:54:23 <<<<
|
||||
2025-12-17 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-16 was updated!
|
||||
2025-12-18 09:54:23 <<<<
|
||||
2025-12-18 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-17 was updated!
|
||||
2025-12-19 09:54:22 <<<<
|
||||
2025-12-19 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-18 was updated!
|
||||
2025-12-20 09:54:23 <<<<
|
||||
2025-12-20 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-19 was updated!
|
||||
2025-12-21 09:54:22 <<<<
|
||||
2025-12-21 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-20 was updated!
|
||||
2025-12-22 09:54:23 <<<<
|
||||
2025-12-22 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-21 was updated!
|
||||
2025-12-23 09:54:22 <<<<
|
||||
2025-12-23 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-22 was updated!
|
||||
2025-12-24 09:54:23 <<<<
|
||||
2025-12-24 09:54:28 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-23 was updated!
|
||||
2025-12-25 09:54:23 <<<<
|
||||
2025-12-25 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-24 was updated!
|
||||
2025-12-26 09:54:23 <<<<
|
||||
2025-12-26 09:54:27 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-25 was updated!
|
||||
2025-12-27 09:54:22 <<<<
|
||||
2025-12-27 09:54:26 >>>>
|
||||
|
||||
the table report_agent_day was synchronized!
|
||||
|
||||
the table report_game_day was synchronized!
|
||||
|
||||
the report was created!
|
||||
|
||||
the data of 2025-12-26 was updated!
|
||||
10
codes/agent/tools/install.bat
Normal file
10
codes/agent/tools/install.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
if exist "%~dp0HttpRequestService.x64.exe" (
|
||||
set Service=%~dp0HttpRequestService.x64.exe
|
||||
) else if exist "%~dp0HttpRequestService.x86.exe" (
|
||||
set Service=%~dp0HttpRequestService.x86.exe
|
||||
) else (
|
||||
set Service=%~dp0HttpRequestService.exe
|
||||
)
|
||||
|
||||
|
||||
"%Service%" -install
|
||||
10
codes/agent/tools/remove.bat
Normal file
10
codes/agent/tools/remove.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
if exist "%~dp0HttpRequestService.x64.exe" (
|
||||
set Service=%~dp0HttpRequestService.x64.exe
|
||||
) else if exist "%~dp0HttpRequestService.x86.exe" (
|
||||
set Service=%~dp0HttpRequestService.x86.exe
|
||||
) else (
|
||||
set Service=%~dp0HttpRequestService.exe
|
||||
)
|
||||
|
||||
|
||||
"%Service%" -remove
|
||||
BIN
codes/agent/tools/script.zip
Normal file
BIN
codes/agent/tools/script.zip
Normal file
Binary file not shown.
27
codes/agent/tools/ssl/_.tscce.cn.key
Normal file
27
codes/agent/tools/ssl/_.tscce.cn.key
Normal file
@@ -0,0 +1,27 @@
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpQIBAAKCAQEA3lPWXBHWN/QmFyq/QZku/5TkLDvPnGtS1BgdiNw9HjCZJ4xV
|
||||
BszuP6TEGPjTKM02rlYI+y+PiESpoogJwE/dO+67ytfApLM6q4qlMVYnelYgJKoT
|
||||
91CcikoY5QxtMXjlm+s+7MMNWeBX1Y4V9ewUyxm7P005o0xb6kFxHoBBCka/cuUB
|
||||
sbhnPj1cCFZym9wG/W/TzbNZqyrMgERqcaczuopbCYunBA6r/WOC7103IO7gPqK7
|
||||
PJ+NJy8Em3S/0ls8rWo+tvHw9qOIQPCVBRWxI2jH076Nw7NX9qUwTP3L2bKuMoZb
|
||||
WVLloWS78XI6iMYrPBZQEfeBqyTA6cevBAwwpwIDAQABAoIBAQDGjpVpEL0Cp9fE
|
||||
5PZ+fXJN7AmDv78A8ZC9vvPRoPAsoDaH7XqaYjd9O4euzbq4O95UAJ5wxt8nUjs1
|
||||
3szmpeztc57f36Q68564SVCTKWCEj5qRZBwEykej8d0d4uU6Q8C8aXJ/PQwVcpi/
|
||||
LvBJ+5fuc4KZXDzXrICCTAPcu6pao36BS/ndVr5tqdmIPKuzrTkpHqDJkq3Hd+gt
|
||||
ozUMwdiNEdqjDVHT9dHo3CuRasYeujPezRF9tyqRyOhZCmf+yyuIoRboqTlpNqJ+
|
||||
V4oGHRrsTLxnM2C00vqpX/KiNNOycYhQzVKHo6Me55dgqw7voIEFvHXgEXxU3CPe
|
||||
nCJQX3DxAoGBAO9kLmaeIpbDFo8bzwPKew3+LlgNzGzNDfgin4w48uJiYuMx7hWh
|
||||
O2iSXyh1AOH6O6EC2gzxIww9YdSZjZFbQZaNfwXJeA2lklCdP6UP3tUWbecQMhQX
|
||||
CIm+iFX7usRsUdZyEbkZdmIFufF2XqydkrIjSBV2V0QZ9/u/bjrI9yadAoGBAO3A
|
||||
lf+JmxlWpXqOQTT+kKuACiVrDVtFZcKgp1lw6bCwktsHJETmVIllccRldgbIfJAV
|
||||
a93y2i5QVcOW2tEI+stmOJI1DrzXs7/+V8nWTczVF73+Ap8Ylp5DVVGgPym4o0Bq
|
||||
fDrLqCf04Z63ExnpxNayGgdujVXHcXiV0HY2268TAoGBAOh8069nPlJKTrtXF3oo
|
||||
B8/0Hc/4PqMflcR445gLqp5/TGg3EnDBL/ADzxR8ZQoRuh1JprhQ62e0qTEOm3Ui
|
||||
OhVbf5QAMG6YcPuHa8sDGba6XKu9h9UI9YrIlqFiouSmCeiIyXuJJfZWd1nwSku7
|
||||
kD8ekp/9WQzTZ4l/RS8kAxrlAoGBAMRaMkdJ8SL7EU1nIOlQeFB7PWXrxKslZEZa
|
||||
Afv3Kbj4C0EC4+xXQWf7tPqbRN+TQnSIjH5QK+rmA/61nt/Wh7HmKUBuu04w4s3k
|
||||
k8Io0DYjoykRGD8mwnXQbC0uqBuf1ovDpfe07JqbPp6i2g6jpyIdEywiHG3Eeq05
|
||||
JWIMKmCrAoGADLIdqVyDUGkbrFEpedID44s4Bqn67tT32R5Q7/BfEyao3rMIP84q
|
||||
U7PHZzUrQE/bHUWhLi/2nB6IB2gIhI/ap5P1P6BrufNrzjZDUj4AwDmpexzPBUwQ
|
||||
8aZGFvxtGZHfKlUvjQAJznt7mgQjxemRJ2/9oUAZG5bF8D13V9jfbHo=
|
||||
-----END RSA PRIVATE KEY-----
|
||||
BIN
codes/agent/tools/ssl/_.tscce.cn_sha256_cn.zip
Normal file
BIN
codes/agent/tools/ssl/_.tscce.cn_sha256_cn.zip
Normal file
Binary file not shown.
10
codes/agent/tools/start.bat
Normal file
10
codes/agent/tools/start.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
if exist "%~dp0HttpRequestService.x64.exe" (
|
||||
set Service=%~dp0HttpRequestService.x64.exe
|
||||
) else if exist "%~dp0HttpRequestService.x86.exe" (
|
||||
set Service=%~dp0HttpRequestService.x86.exe
|
||||
) else (
|
||||
set Service=%~dp0HttpRequestService.exe
|
||||
)
|
||||
|
||||
|
||||
"%Service%" -start
|
||||
9
codes/agent/tools/stop.bat
Normal file
9
codes/agent/tools/stop.bat
Normal file
@@ -0,0 +1,9 @@
|
||||
if exist "%~dp0HttpRequestService.x64.exe" (
|
||||
set Service=%~dp0HttpRequestService.x64.exe
|
||||
) else if exist "%~dp0HttpRequestService.x86.exe" (
|
||||
set Service=%~dp0HttpRequestService.x86.exe
|
||||
) else (
|
||||
set Service=%~dp0HttpRequestService.exe
|
||||
)
|
||||
|
||||
"%Service%" -stop
|
||||
Reference in New Issue
Block a user