Skip to content
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

昨天下午至今无法『自动通过好友』,代码之前运行一周无问题 #175

Closed
summerblue opened this issue Jun 24, 2017 · 7 comments

Comments

@summerblue
Copy link

报错:

image

实现代码:

image

@Hanson
Copy link
Owner

Hanson commented Jun 25, 2017

应该是微信做出了点改动,从昨天开始几乎都失效了

@summerblue
Copy link
Author

有方案记得喊我啊

@Hanson
Copy link
Owner

Hanson commented Jun 25, 2017

@yee94
Copy link

yee94 commented Jun 27, 2017

有解决的方案了么

@yee94
Copy link

yee94 commented Jun 27, 2017

主要是POST的时候的 VerifyUserList 这个字段变成了数组形式 。

{
    "BaseRequest": {
        "Uin": 962444625,
        "Sid": "rlz5jwGKi/wNM1sl",
        "Skey": "@crypt_37e3b1dd_7cd89bdef43b8695cc1780ec7a73ff9e",
        "DeviceID": "e560898141711756"
    },
    "Opcode": 3,
    "VerifyUserListSize": 1,
    "VerifyUserList": [
        {
            "Value": "@73dabf76d55ab590bc17b3e6a944a4a6e6fa28f4eecc31ecc92539d5fbb27592",
            "VerifyUserTicket": "v2_3f491348e542728c47b456b3c5ea90cadf78a2576b2bffa830203c5555478818848161ec0da73904013adc56dcd3fa6f3320f73468f554bbfb81a2299402ee45@stranger"
        }
    ],
    "VerifyContent": "",
    "SceneListCount": 1,
    "SceneList": [
        33
    ],
    "skey": "@crypt_37e3b1dd_7cd89bdef43b8695cc1780ec7a73ff9e"
}

修复代码, vbot/src/Contact/Friends.php

        $data = [
            'BaseRequest'        => $this->vbot->config['server.baseRequest'],
            'Opcode'             => $code,
            'VerifyUserListSize' => 1,
            'VerifyUserList'     => [$userList],
            'VerifyContent'      => $content,
            'SceneListCount'     => 1,
            'SceneList'          => [33],
            'skey'               => $this->vbot->config['server.skey'],
        ];

将VerifyUserList改为数组包裹。

@Hanson @summerblue

@Hanson
Copy link
Owner

Hanson commented Jun 27, 2017

@xiaobebe 谢谢,果然是

@Hanson
Copy link
Owner

Hanson commented Jun 27, 2017

新版本已修复此问题

@Hanson Hanson closed this as completed Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants