New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于提交成功无法在微信显示步数的问题 #5

Closed
Evilmass opened this Issue Apr 9, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@Evilmass
Copy link
Owner

Evilmass commented Apr 9, 2017

有一些账号显示提交成功也返回正确结果,但是微信步数没有更新(乐动力不会显示刷的步数,只有微信能看到)。可以尝试取消绑定设备然后清除应用数据来获取新的pc_value
然后再次绑定设备,这个问题目前未知原因。有趣的是乐动力服务器似乎不限制成绩提交,我尝试提交了5k次成绩也没有任何限制(笑

@Evilmass Evilmass changed the title 关于提交成绩返回成功结果无法在微信显示步数的问题 关于提交成功无法在微信显示步数的问题 Apr 9, 2017

@Evilmass

This comment has been minimized.

Copy link
Owner

Evilmass commented Apr 9, 2017

生成pc_value的函数逻辑如下

import java.util.Random;
import java.util.UUID;

public class test {
    public static String RandomString(int paramInt)
    {
        Random localRandom = new Random();
        StringBuffer localStringBuffer = new StringBuffer();
        for (int i = 0; i < paramInt; i++) {
            localStringBuffer.append("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(localRandom.nextInt(62)));
        }
        return localStringBuffer.toString();
    }
    public static String getRealDeviceId()
    {
        return UUID.randomUUID().toString();
    }
    public static String getDeviceID()
    {
        String str2 = getRealDeviceId();
        String str1 = str2;
        if (str2.isEmpty()) {
            str1 = RandomString(7);

        }
        String str3 = "an" + MD5Util.MD5(str1);
        return str3.toLowerCase();
    }
    public static void main(String[] args){
        System.out.println(getDeviceID());
    }
}

那么有个新的思路:随机生成新的pc_value,抓包分析绑定微信设备的过程(感觉不容易,欢迎pr),然后就可以用这个pc_value来实现刷步数。

@Evilmass

This comment has been minimized.

Copy link
Owner

Evilmass commented Apr 10, 2017

已解决PC问题

@Evilmass Evilmass closed this Apr 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment