fix: variable names conflict

This commit is contained in:
initialencounter 2024-05-06 21:19:01 +08:00
parent d2d2f708fc
commit a11d502981
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
"reportSelfMessage": RSM_ENABLE,
"debug": DEBUG_ENABLE,
"enableLocalFile2Url": F2U_ENABLE,
"heartInterval": HEART,
"heartInterval": HEART_INTERVAL,
"musicSignUrl": "MUSIC_SIGN_URL",
"token": "TOKEN"
}

View File

@ -54,10 +54,10 @@ if [ ! -f "$CONFIG_PATH" ]; then
sed -i "s/\"WS_URLS\"/\"\"/" $CONFIG_PATH
fi
if [ "$HEART" ]; then
sed -i "s/HEART/$HEART/" $CONFIG_PATH
if [ "$HEART_INTERVAL" ]; then
sed -i "s/HEART_INTERVAL/$HEART_INTERVAL/" $CONFIG_PATH
else
sed -i "s/HEART/60000/" $CONFIG_PATH
sed -i "s/HEART_INTERVAL/60000/" $CONFIG_PATH
fi
if [ "$TOKEN" ]; then