|
@@ -8,6 +8,7 @@ import (
|
|
|
//正文
|
|
|
var SE = &SimpleEncrypt{Key: "topnet2015topnet2015"}
|
|
|
var SE2 = &SimpleEncrypt{Key: "2017jianyu"}
|
|
|
+var SE3 = &SimpleEncrypt{Key: "entservice"}
|
|
|
|
|
|
//百度
|
|
|
var BSE = &SimpleEncrypt{Key: "HNtopnet2017jy"}
|
|
@@ -32,8 +33,6 @@ func CommonEncodeArticle(stype string, keys ...string) (id string) {
|
|
|
id = BEncodeArticleId2ByCheck("C", ESE, ESE2, keys...)
|
|
|
case "indexcontent":
|
|
|
id = BEncodeArticleId2ByCheck("D", ISE, ISE2, keys...)
|
|
|
- case "entservice":
|
|
|
- id = BEncodeArticleId2ByCheck("E", SE, SE2, keys...)
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -49,8 +48,6 @@ func CommonDecodeArticle(stype string, id string) (res []string) {
|
|
|
res = BDecodeArticleId2ByCheck(id, ESE, ESE2)
|
|
|
case "indexcontent":
|
|
|
res = BDecodeArticleId2ByCheck(id, ISE, ISE2)
|
|
|
- case "entservice":
|
|
|
- res = BDecodeArticleId2ByCheck(id, SE, SE2)
|
|
|
}
|
|
|
return
|
|
|
}
|