新增抖音用户基本信息解密

This commit is contained in:
邹宗楠
2022-06-10 18:03:13 +08:00
parent 5fd9ffcb26
commit a6fb0ed185
3 changed files with 61 additions and 0 deletions

View File

@@ -90,6 +90,21 @@ func (c *Auth2Controller) SendVerifyCode() {
})
}
// @Title 抖音解密接口,获取用户电话
// @Description 抖音解密接口,获取用户电话
// @Param iv formData string true "加密字符偏移量"
// @Param sessionKey formData string true "加密key"
// @Param msg formData string true "加密消息"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /TiktokDecrypt [post]
func (c *Auth2Controller) TiktokDecrypt() {
c.callTiktokDecrypt(func(params *tAuth2TiktokDecryptParams) (interface{}, string, error) {
phone, err := auth2.DecryptUserMsg(params.SessionKey, params.Iv, params.Msg)
return phone, "", err
})
}
// @Title 登录接口
// @Description 登录接口(微信与公众号登录不能直接调用此接口)
// @Param authType formData string true "登录类型,当前支持[localpass本地账号密码mobile手机短信wxqrcode:微信登录weixinsns微信公众号weixinmini小程序wxnative微信APPddstaff钉钉企业ddqrcode钉钉扫码alipaycode支付宝小程序]"