Browse Source

generate qr image

liuyuqi-dellpc 1 year ago
parent
commit
c51b297f11
1 changed files with 0 additions and 3 deletions
  1. 0 3
      qr/qr.go

+ 0 - 3
qr/qr.go

@@ -3,7 +3,6 @@ package qr
 import (
 import (
 	"log"
 	"log"
 	"os"
 	"os"
-	"os/exec"
 	"path/filepath"
 	"path/filepath"
 
 
 	"github.com/skip2/go-qrcode"
 	"github.com/skip2/go-qrcode"
@@ -19,6 +18,4 @@ func RenderString(s string) {
 	if err2 != nil {
 	if err2 != nil {
 		panic(err2)
 		panic(err2)
 	}
 	}
-	cmd := exec.Command("rundll32.exe", "url.dll,FileProtocolHandler", dir+"/tmp.png")
-	cmd.Start()
 }
 }