Skip to content

Commit b1b34d9

Browse files
committed
feat(notify):新增只提醒红字或关注个股新闻的设置
- 在 App 中实现只推送红字或关注个股新闻的逻辑 - 在前端添加 enableOnlyPushRedNews 配置项 - 更新后端设置 API 以支持新功能
1 parent 83aa433 commit b1b34d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func (a *App) CheckUpdate(flag int) {
256256
}
257257
go runtime.EventsEmit(a.ctx, "newsPush", map[string]any{
258258
"time": "发现新版本:" + releaseVersion.TagName,
259-
"isRed": false,
259+
"isRed": true,
260260
"source": "go-stock",
261261
"content": fmt.Sprintf("%s", commit.Message),
262262
})
@@ -299,7 +299,7 @@ func (a *App) CheckUpdate(flag int) {
299299
if flag == 1 {
300300
go runtime.EventsEmit(a.ctx, "newsPush", map[string]any{
301301
"time": "当前版本:" + Version,
302-
"isRed": false,
302+
"isRed": true,
303303
"source": "go-stock",
304304
"content": "当前版本无更新",
305305
})

0 commit comments

Comments
 (0)