🐛 fix can't find zhimg for dev
This commit is contained in:
parent
e1671a0511
commit
0a901a2eb0
2
build.sh
2
build.sh
@ -96,5 +96,5 @@ elif [ "$1" = "release" ]; then
|
|||||||
BUILD release
|
BUILD release
|
||||||
RELEASE
|
RELEASE
|
||||||
else
|
else
|
||||||
echo -e "${RED_COLOR} 错误的命令${RES}"
|
echo -e "${RED_COLOR} Parameter error ${RES}"
|
||||||
fi
|
fi
|
||||||
|
@ -25,8 +25,11 @@ func InitIndex() {
|
|||||||
}
|
}
|
||||||
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
|
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf(err.Error())
|
log.Error(err.Error())
|
||||||
return
|
index, err = public.Public.Open("index.html")
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err.Error())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
data, _ := ioutil.ReadAll(index)
|
data, _ := ioutil.ReadAll(index)
|
||||||
conf.RawIndexHtml = string(data)
|
conf.RawIndexHtml = string(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user