|
@@ -141,7 +141,7 @@ func SignatureUpload(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
|
// 保存图片
|
|
|
os.Mkdir("signature/", 0777)
|
|
|
pathFileName := fmt.Sprintf("%s%s", randName(6), handle.Filename)
|
|
|
- saveFile, err := os.OpenFile(pathFileName, os.O_WRONLY|os.O_CREATE, 0666)
|
|
|
+ saveFile, err := os.OpenFile(fmt.Sprintf("signature/%s", pathFileName), os.O_WRONLY|os.O_CREATE, 0666)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|