This commit is contained in:
邹宗楠
2023-01-30 15:42:56 +08:00
parent 19e05d098c
commit 63687148fb
2 changed files with 25 additions and 7 deletions

View File

@@ -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
})
}