We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b8455 commit 23b972bCopy full SHA for 23b972b
plugin/pig/pig.go
@@ -6,7 +6,6 @@ import (
6
"errors"
7
"fmt"
8
"math/rand"
9
- "path/filepath"
10
"strings"
11
"sync"
12
"time"
@@ -197,8 +196,7 @@ func (img *pigImage) fetch() ([]byte, error) {
197
196
return nil, errors.New("图片数据异常,缺少文件名")
198
}
199
200
- targetPath := filepath.Join("assets", img.Filename)
201
-
+ targetPath := "assets/" + img.Filename
202
imgData, err := engine.GetLazyData(targetPath, true)
203
if err != nil {
204
return nil, errors.New("图片资源缺失 (" + targetPath + "): " + err.Error())
0 commit comments