新增抖音用户基本信息解密
This commit is contained in:
@@ -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:微信APP,ddstaff:钉钉企业,ddqrcode:钉钉扫码,alipaycode:支付宝小程序]"
|
||||
|
||||
Reference in New Issue
Block a user