项目

一般

简介

IsMainServer » 历史记录 » 版本 1

tejie, 2025-09-16 11:00

1 1 tejie
h4. _*%{color:green}isMainServer%*_
2
3
判定当前脚本运行服务器是否主服
4
5
使用场景
6
保证需要跨服统一处理的业务,只在主服执行一次。
7
8
标签:命令定义^isMainServer
9
10
-
11
-
12
13
h4. *%{color:deepskyblue}特戒引擎脚本示例%*
14
15
bq. *{color:pink}文件路径*
16
..\Mir200\Envir\Robot_def\AutoRunRobot.txt
17
<notextile></notextile>
18
RUNONDAY 22:00 @主服执行
19
<notextile></notextile>
20
<notextile></notextile>
21
*{color:pink}文件路径*
22
..\Mir200\Envir\Robot_def\RobotManage.txt
23
<notextile></notextile>
24
<notextile>[@主服执行]</notextile>
25
#if
26
*{color:green}isMainServer*
27
#act
28
[[sendMsg]] 0 当前是主服,执行统一的通区数据表处理
29
#elseAct
30
[[sendMsg]] 0 当前不是主服,不处理统一的通区数据表