Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

有Java代码吗 #22

Open
jinyeqiong opened this issue May 12, 2020 · 9 comments
Open

有Java代码吗 #22

jinyeqiong opened this issue May 12, 2020 · 9 comments

Comments

@jinyeqiong
Copy link

亲,请问encrypt那些函数有java的吗?

@BB-fat
Copy link
Owner

BB-fat commented May 12, 2020

没有,基本都是js的。

@jinyeqiong
Copy link
Author

亲,请问yzmSj是时间戳还是类似这种(2019-08-30 14:29:48)的时间呢?

@jinyeqiong
Copy link
Author

还有求key9时,toSub函数是什么?非常感谢~

@BB-fat
Copy link
Owner

BB-fat commented May 12, 2020

yzmSj是验证码接口返回的数据包中的字串,是类似“2019-08-30 14:29:48”这种形式的
toSub就是平台js反复调用的一个函数,原来好像叫xx

@jinyeqiong
Copy link
Author

亲,这个函数toSub实现的功能是什么,有没有具体的代码呢?因为我看key9生成的时候直接调用toSub函数了,但是没给这个函数的代码~ 谢谢啦~

@BB-fat
Copy link
Owner

BB-fat commented May 13, 2020

function toSub(str) {
if (str.length > 11) {
return str.substring(0, 11);
} else if (str.length > 2) {
return str.substring(0, 2);
}
return str;
}

@jinyeqiong
Copy link
Author

亲,key9的代码我用python实现了一下,发现得到的数据好像与实际的数据不符~

@BB-fat
Copy link
Owner

BB-fat commented May 13, 2020

这部分我不太清楚,key9不是我实现的

@FortuneStar
Copy link

我实现了key9,和前端生成的一样

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants