|
@@ -126,6 +126,7 @@ type Front struct {
|
|
|
shareinfo xweb.Mapper `xweb:"/front/shareinfo"` //深度阅读,打赏信息
|
|
|
hpshare xweb.Mapper `xweb:"/front/homepage/wxshare"` //扫码分享
|
|
|
hp xweb.Mapper `xweb:"/front/hp.html"` //QQ 分享好友到首页
|
|
|
+ setSeoVersion xweb.Mapper `xweb:"/front/setSeoVersion"`
|
|
|
}
|
|
|
|
|
|
var sewx util.SimpleEncrypt //微信的加密方法
|
|
@@ -1506,3 +1507,22 @@ func changeMapKeyForCass(res map[string]interface{}) map[string]interface{} {
|
|
|
}
|
|
|
return val
|
|
|
}
|
|
|
+
|
|
|
+//设置js css 版本号,修改以后记得同步更新seo.json中的值
|
|
|
+func (f *Front) SetSeoVersion() {
|
|
|
+ //!@111qqq@! md5=51a3b7b4ed3cf140
|
|
|
+ if f.GetString("p") != "51a3b7b4ed3cf140" {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ version := ""
|
|
|
+ if f.GetString("v") == "" {
|
|
|
+ version = config.Seoconfig_Version
|
|
|
+ if version == "" {
|
|
|
+ version, _ = config.Seoconfig["version"].(string)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ version = f.GetString("v")
|
|
|
+ config.Seoconfig_Version = version
|
|
|
+ }
|
|
|
+ f.Write("当前版本号:" + version)
|
|
|
+}
|