|
@@ -50,6 +50,9 @@ func (this *BaseAuthController) Prepare() {
|
|
|
return
|
|
|
}
|
|
|
checkAuthorization := utils.MD5(utils.APP_NAME_EN + utils.Md5Key)
|
|
|
+ fmt.Println("name:", utils.APP_NAME_EN, ",md5_key:", utils.Md5Key, ";")
|
|
|
+ fmt.Println(utils.APP_NAME_EN)
|
|
|
+ fmt.Println(utils.Md5Key)
|
|
|
fmt.Println(checkAuthorization)
|
|
|
if authorization != checkAuthorization {
|
|
|
this.JSON(models.BaseResponse{Ret: 408, Msg: "签名错误!", ErrMsg: "签名错误:authorization is err "}, false, false)
|