123456789101112131415161718192021 |
- package util
- import (
- "app.yhyue.com/moapp/jybase/encrypt"
- )
- // 加密
- func EncodeId(sid string) string {
- if sid == "" {
- return ""
- }
- return encrypt.EncodeArticleId2ByCheck(sid)
- }
- // 解密
- func DecodeId(eid string) string {
- if eid == "" {
- return ""
- }
- return encrypt.DecodeArticleId2ByCheck(eid)[0]
- }
|