[change] lock tests

This commit is contained in:
Max 2023-02-08 20:10:03 +08:00
parent 3511a4bd73
commit d7d3d832cb
2 changed files with 4 additions and 3 deletions

View file

@ -85,7 +85,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: ${{ env.REPO_GOU }}
ref: dc3d98411f61e21cf775e4c82d92d5ac2acfc03c
ref: v0.10.2-locked
path: gou
- name: Checkout V8Go
@ -99,6 +99,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: yaoapp/yao-dev-app
ref: 5d89341d64e74d0c4559d4bc520c39f99deb7ffa
path: app
- name: Move Kun, Xun, Gou, V8Go

View file

@ -30,12 +30,12 @@ func Base64AESEncode(key []byte, text string) (string, error) {
stream.XORKeyStream(ciphertext[aes.BlockSize:], plaintext)
// convert to base64
return base64.URLEncoding.EncodeToString(ciphertext), nil
return base64.StdEncoding.EncodeToString(ciphertext), nil
}
// Base64AESDecode AES decode
func Base64AESDecode(key []byte, cryptoText string) (string, error) {
ciphertext, _ := base64.URLEncoding.DecodeString(cryptoText)
ciphertext, _ := base64.StdEncoding.DecodeString(cryptoText)
block, err := aes.NewCipher(key)
if err != nil {