|
|
@@ -4,7 +4,6 @@ import (
|
|
|
"context"
|
|
|
"fmt"
|
|
|
"github.com/gogf/gf/database/gredis"
|
|
|
- "github.com/gogf/gf/encoding/gjson"
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
@@ -146,7 +145,7 @@ func (a *Manager) GetAllScenesPage(code string, pi, ps int) (AllSceneResult, err
|
|
|
if err != nil {
|
|
|
return result, err
|
|
|
}
|
|
|
- fmt.Printf("keys---------------:%s", keys)
|
|
|
+
|
|
|
// 检查是否有数据
|
|
|
if keys.IsEmpty() {
|
|
|
return result, nil
|
|
|
@@ -175,7 +174,6 @@ func (a *Manager) GetAllScenesPage(code string, pi, ps int) (AllSceneResult, err
|
|
|
if err != nil {
|
|
|
return result, err
|
|
|
}
|
|
|
- fmt.Printf("scene:%s", gjson.New(scene).MustToJsonString())
|
|
|
result.Data = append(result.Data, &scene)
|
|
|
}
|
|
|
return result, nil
|