1
This commit is contained in:
@@ -92,12 +92,13 @@ func (c *Auth2Controller) SendVerifyCode() {
|
||||
// @Param iv formData string true "加密字符偏移量"
|
||||
// @Param sessionKey formData string true "加密key"
|
||||
// @Param msg formData string true "加密消息"
|
||||
// @Param loginType formData string true "登录类型兼容抖音登录/快手[tiktokmini/kuaishoumini]"
|
||||
// @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)
|
||||
phone, err := auth2.DecryptUserMsg(params.SessionKey, params.Iv, params.Msg, params.LoginType)
|
||||
return phone, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user