浏览代码

Merge branch 'master' of https://jygit.jydev.jianyu360.cn/moapp/jybase

wangchuanjin 6 月之前
父节点
当前提交
ed633bf76e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      encrypt/encryptarticle.go

+ 2 - 2
encrypt/encryptarticle.go

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