|
@@ -5,6 +5,7 @@ import (
|
|
|
"fmt"
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
|
+ "jybxseo/internal/consts"
|
|
|
"jybxseo/utility"
|
|
|
"strings"
|
|
|
"time"
|
|
@@ -38,6 +39,7 @@ func (dRoot *DetailRoot) GetDetail(ctx context.Context, seoId string, isLogin bo
|
|
|
if !isLogin {
|
|
|
obj = Filter(obj)
|
|
|
}
|
|
|
+ obj["title"] = gconv.String(fmt.Sprintf("【%s】%s", consts.TopTypeMap[gconv.String(obj["toptype"])], obj["title"]))
|
|
|
jyWebDomain := g.Cfg("global").MustGet(context.Background(), "jyWebDomain").String()
|
|
|
obj["abstract"] = fmt.Sprintf(g.Cfg("global").MustGet(context.Background(), "describe").String(), gconv.String(obj["title"]), gconv.String(obj["area"]), jyWebDomain+"/notin/page?backTo="+url)
|
|
|
obj["time"] = time.Unix(gconv.Int64(obj["publishtime"]), 0).Format("2006-01-02")
|