ソースを参照

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)