|
@@ -5,11 +5,12 @@ import (
|
|
|
"errors"
|
|
|
"strings"
|
|
|
|
|
|
+ "bytes"
|
|
|
+
|
|
|
"app.yhyue.com/moapp/jyfs/rpc/filesystem"
|
|
|
+ "app.yhyue.com/moapp/jyfs/rpc/internal/redis"
|
|
|
"app.yhyue.com/moapp/jyfs/rpc/internal/svc"
|
|
|
|
|
|
- "bytes"
|
|
|
-
|
|
|
// "app.yhyue.com/moapp/jyfs/rpc/internal/redis"
|
|
|
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
|
|
"github.com/tal-tech/go-zero/core/logx"
|
|
@@ -37,7 +38,7 @@ func (l *SaveFileLogic) SaveFile(in *filesystem.SaveFileReq) (*filesystem.FileOp
|
|
|
return &filesystem.FileOpResp{State: false}, err
|
|
|
}
|
|
|
meta := redis.GetStr("jyfs", "jyfs_"+in.Domain)
|
|
|
- if meta != nil {
|
|
|
+ if meta != "" {
|
|
|
for k, _ := range in.Meta {
|
|
|
if !strings.Contains(meta, k) {
|
|
|
return &filesystem.FileOpResp{}, errors.New("缺少元信息")
|