修改之前注释内容,完善小程序文案和只显示位置
This commit is contained in:
@@ -88,7 +88,7 @@ export default function Device() {
|
|||||||
const nextValue = Boolean(e.detail?.value)
|
const nextValue = Boolean(e.detail?.value)
|
||||||
setSleepEnabled(nextValue)
|
setSleepEnabled(nextValue)
|
||||||
Taro.showToast({
|
Taro.showToast({
|
||||||
title: nextValue ? '休眠展示已开启' : '休眠展示已关闭',
|
title: nextValue ? '休眠已开启' : '休眠已关闭',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -241,7 +241,7 @@ export default function Device() {
|
|||||||
</View>
|
</View>
|
||||||
<View className='control-info'>
|
<View className='control-info'>
|
||||||
<Text className='control-name'>定时休眠</Text>
|
<Text className='control-name'>定时休眠</Text>
|
||||||
<Text className='control-detail'>开启后进入休眠展示</Text>
|
<Text className='control-detail'>开启后进入休眠状态</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<Switch checked={sleepEnabled} onChange={handleSleepToggle} color='#FF8C42' />
|
<Switch checked={sleepEnabled} onChange={handleSleepToggle} color='#FF8C42' />
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ export default function Location() {
|
|||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<View className='mode-switch'>
|
{/* <View className='mode-switch'>
|
||||||
{MODE_OPTIONS.map((item) => (
|
{MODE_OPTIONS.map((item) => (
|
||||||
<View
|
<View
|
||||||
key={item.key}
|
key={item.key}
|
||||||
@@ -388,7 +388,7 @@ export default function Location() {
|
|||||||
<Text className='mode-chip-text'>{item.label}</Text>
|
<Text className='mode-chip-text'>{item.label}</Text>
|
||||||
</View>
|
</View>
|
||||||
))}
|
))}
|
||||||
</View>
|
</View> */}
|
||||||
|
|
||||||
<View className='map-section'>
|
<View className='map-section'>
|
||||||
<Map
|
<Map
|
||||||
|
|||||||
@@ -87,9 +87,8 @@ async def lifespan(app: FastAPI):
|
|||||||
session_logger.system_info("shutdown", "后台清理任务已取消")
|
session_logger.system_info("shutdown", "后台清理任务已取消")
|
||||||
|
|
||||||
from services.audio_session import audio_session_manager
|
from services.audio_session import audio_session_manager
|
||||||
sessions_to_close = []
|
|
||||||
async for session_key, session in audio_session_manager.get_all_sessions():
|
sessions_to_close = await audio_session_manager.get_all_sessions()
|
||||||
sessions_to_close.append((session_key, session))
|
|
||||||
|
|
||||||
for session_key, session in sessions_to_close:
|
for session_key, session in sessions_to_close:
|
||||||
try:
|
try:
|
||||||
@@ -135,7 +134,7 @@ configure_static_assets(app)
|
|||||||
|
|
||||||
# 安装中间件
|
# 安装中间件
|
||||||
install_request_logging_middleware(app)
|
install_request_logging_middleware(app)
|
||||||
# install_auth_middleware(app)
|
install_auth_middleware(app)
|
||||||
|
|
||||||
app.include_router(api_router)
|
app.include_router(api_router)
|
||||||
app.include_router(banban_router)
|
app.include_router(banban_router)
|
||||||
|
|||||||
Reference in New Issue
Block a user