


Recently, the WeChat mini program has been officially updated again, but I won’t care about the rest.
"wx.getWeRunData obtains WeChat sports data", this interface is really useful, because the company happens to be doing a lottery related to WeChat steps.
The only question is that the official document says that the data of the past 30 days can be obtained, so can the data of the current day be obtained? Let’s not complain about the ambiguity in the description of the document. I can only test it myself (the focus of this test is whether I can obtain the sports data of the day, and some operations will be briefly mentioned).
First look at the document description:
WeChat Sports Interface Document
Then the following is the decryption The final structure:
After decrypting the motion data
After reading the document, start testing. Look at the code:
##Step count decrypted data
##About
: All timestamps are displayed as 00:00:00 of a certain day after being converted to date, such as: 2008/8/8 00:00:00; including the last one, which is my timestamp today after transcoding: 2017/5/23 00:00:00 (no matter which time period it is obtained on the 23rd, They are all in this format). The timestamp under the watermark is the time of the interface request.
##Note (of course this is just what I encountered. For reference):
There is a problem. There will be a delay between the number of steps obtained by this applet and the number of steps in WeChat Sports (of course, let’s not talk about the delay of WeChat Sports itself. Now we only study what we can see in WeChat Sports. The data of the mini program and the data of the step count interface)
There will be a situation where if the user does not enter the WeChat exercise and directly requests the mini program to obtain the step count interface, the data will remain unchanged. It will change! The data will be reacquired after a long period of time.
After testing, first enter WeChat Sports and then request the mini program to obtain the step count. Then the data will be consistent at this time. That is to say, is it equivalent to the user going into WeChat Sports to submit the step count to the database? Then the applet obtains the step count interface to get the latest? Otherwise, it has to wait for WeChat Sports' own data to be updated....
So, without entering the WeChat sports interface, how often will the mini program obtain the step count interface data refreshed?
Some experts have research results? Yes, welcome to communicate and discuss!
[Related recommendations]##1. WeChat public account platform source code download
##2.
小 Pigcms (PigCms) micro-e-commerce system operation version (independent micro-store mall + three-level distribution system) WeChat People King v3.4.5 Advanced Business Edition WeChat Rubik’s Cube Source CodeThe above is the detailed content of Share the method of using the mini program to obtain and decrypt the WeChat step count to obtain the data of the day. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver CS6
Visual web development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1
Easy-to-use and free code editor
