Skip to content

Commit

Permalink
Merge pull request #8 from shanghaobo/dev
Browse files Browse the repository at this point in the history
fix:查看记录有黑窗出现
  • Loading branch information
shanghaobo authored Aug 29, 2023
2 parents 9ccc87e + 9b3ef9c commit 49d0c1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/comm/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ package comm
import (
"http-win-notice/utils/constant"
"http-win-notice/utils/setting"
"log"
"os/exec"
"strconv"
"syscall"
)

func openUrl(url string) {
exec.Command(`cmd`, `/c`, `start`, url).Start()
cmd := exec.Command(`cmd`, `/c`, `start`, url)
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
err := cmd.Start()
if err != nil {
log.Println("url打开失败:", url)
}
}

func OpenHomePage() {
Expand Down

0 comments on commit 49d0c1b

Please sign in to comment.