Home  >  Article  >  Backend Development  >  javascript - What do the parameters in the post request sent by station B mean?

javascript - What do the parameters in the post request sent by station B mean?

WBOY
WBOYOriginal
2016-12-05 13:44:241777browse

Using chrome to capture the request when station b sends a barrage, I found that there are two parameters in FormData that I don’t understand.
javascript - What do the parameters in the post request sent by station B mean?

1.pool is the number of the barrage pool
2.fontsize is the font size
3.cid is the user id
6.message is the barrage content I sent
7.mod is the barrage mode (i.e. top, scroll, etc.)
8.Playtime is the time that appears in the video, in s, and can be accurate to 3 decimal places.
9.color is the color number

But there are two things I don’t quite understand: rnd and date. Because there is no video AV number in the formdata he submitted, I think rnd and date should be related to the AV number and the current time. I suspect rnd is a random number generated by opening the interface, and date should be the current time after being processed by some algorithm. the result of.

Has anyone seen this FormData? Can you guess how rnd and date are generated?

Reply content:

Using chrome to capture the request when station b sends a barrage, I found that there are two parameters in FormData that I don’t understand.
javascript - What do the parameters in the post request sent by station B mean?

1.pool is the number of the barrage pool
2.fontsize is the font size
3.cid is the user ID
6.message is the barrage content I sent
7.mod is the barrage mode (i.e. top, scroll, etc.)
8. Playtime is the time that appears in the video, in seconds, and can be accurate to 3 decimal places.
9.color is the color number

But there are two things I don’t quite understand: rnd and date. Because there is no video AV number in the formdata he submitted, I think rnd and date should be related to the AV number and the current time. I suspect rnd is a random number generated by opening the interface, and date should be the current time after being processed by some algorithm. the result of.

Has anyone seen this FormData? Can you guess how rnd and date are generated?

The problem has been solved, rnd can randomly generate a 9-digit random number, date is the timestamp, and the automatic barrage script for station B has been completed. Thank you for your answer.

Isn’t date a timestamp? If the number of digits is wrong, it may be milliseconds, and I don’t know the other one. Send another comment to see if rnd has changed

date should be the timestamp sent, in milliseconds.
rnd may be random? random number?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn