Преглед на файлове

feat:增加解密3级页类型

xuemingyang преди 3 години
родител
ревизия
daf603c39b
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      src/qfw/util/encryptarticle.go

+ 1 - 4
src/qfw/util/encryptarticle.go

@@ -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
 }