This commit is contained in:
刘河
2019-03-20 00:26:17 +08:00
parent a4d429bbc1
commit 24bd9ce6ba
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package controllers
import (
"encoding/hex"
"github.com/cnlh/nps/lib/crypt"
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
)
@@ -25,7 +26,7 @@ func (s *AuthController) GetAuthKey() {
return
}
m["status"] = 1
m["crypt_auth_key"] = string(b)
m["crypt_auth_key"] = hex.EncodeToString(b)
m["crypt_type"] = "aes cbc"
return
}