|
|
@@ -64,7 +64,7 @@ func (self *UserController) BindingWxPhone() {
|
|
|
//purePhoneNumber String 没有区号的手机号
|
|
|
//countryCode String 区
|
|
|
|
|
|
- pc := helpers.WxBizDataCrypt{AppID: beego.AppConfig.String("WxFohowXcxAppId"), SessionKey: sessionKey}
|
|
|
+ pc := helpers.WxBizDataCrypt{AppId: beego.AppConfig.String("WxFohowXcxAppId"), SessionKey: sessionKey}
|
|
|
result, err := pc.Decrypt(info.EncryptedData, info.Iv, true) //第三个参数解释: 需要返回 JSON 数据类型时 使用 true, 需要返回 map 数据类型时 使用 false
|
|
|
if err != nil {
|
|
|
beego.BeeLogger.Error("xcx BindingWxPhone descrypt failed, err:%s", err)
|
|
|
@@ -152,7 +152,7 @@ func (self *UserController) BindingWxPhoneNew() {
|
|
|
//purePhoneNumber String 没有区号的手机号
|
|
|
//countryCode String 区
|
|
|
|
|
|
- pc := helpers.WxBizDataCrypt{AppID: beego.AppConfig.String("WxFohowXcxAppId"), SessionKey: sessionKey}
|
|
|
+ pc := helpers.WxBizDataCrypt{AppId: beego.AppConfig.String("WxFohowXcxAppId"), SessionKey: sessionKey}
|
|
|
result, err := pc.Decrypt(info.EncryptedData, info.Iv, true) //第三个参数解释: 需要返回 JSON 数据类型时 使用 true, 需要返回 map 数据类型时 使用 false
|
|
|
if err != nil {
|
|
|
beego.BeeLogger.Error("xcx BindingWxPhone descrypt failed, err:%s", err)
|