|
@@ -26,7 +26,7 @@ var ISE2 = &SimpleEncrypt{Key: "TopnetJy2021Pe"}
|
|
|
// 通用加密
|
|
|
func CommonEncodeArticle(stype string, keys ...string) (id string) {
|
|
|
switch stype {
|
|
|
- case "content":
|
|
|
+ case "content", "yyszb":
|
|
|
id = BEncodeArticleId2ByCheck("A", SE, SE2, keys...)
|
|
|
case "bdprivate":
|
|
|
id = BEncodeArticleId2ByCheck("B", BSE, BSE2, keys...)
|
|
@@ -41,7 +41,7 @@ func CommonEncodeArticle(stype string, keys ...string) (id string) {
|
|
|
// 通用解密
|
|
|
func CommonDecodeArticle(stype string, id string) (res []string) {
|
|
|
switch stype {
|
|
|
- case "content", "bdcontent":
|
|
|
+ case "content", "bdcontent", "yyszb":
|
|
|
res = BDecodeArticleId2ByCheck(id, SE, SE2)
|
|
|
case "bdprivate":
|
|
|
res = BDecodeArticleId2ByCheck(id, BSE, BSE2)
|