-
Notifications
You must be signed in to change notification settings - Fork 23
/
test.php
64 lines (59 loc) · 6.61 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Created by PhpStorm.
* User: Mr.Zhou
* Date: 2018/4/14
* Time: 下午4:43
*/
/** redis注册 */
include './vendor/autoload.php';
define('BASE_PATH', __DIR__);
use Padchat\Client;
$client = new Client([
'host' => '127.0.0.1',
'port' => 6379,
'auth' => '',
]);
switch ($argv[1]) {
case 'login_qrcode':
$data = $client->getLoginQrcode();
break;
case 'login_status':
$data = $client->getLoginStatus();
break;
case 'login_success_info':
$data = $client->getLoginSuccessInfo();
break;
case 'login_wx_info':
$data = $client->getWxInfo("wxid_t7p01dw592qt12");
break;
case 'friend_list':
$data = $client->getFriendList("wxid_t7p01dw592qt12", 1, 1, 15);
break;
case 'gh_list':
$data = $client->getFriendList("wxid_t7p01dw592qt12", 1, 1, 15);
break;
case 'group_list':
$data = $client->getFriendList("wxid_t7p01dw592qt12", 1, 1, 15);
break;
case 'send_msg':
$msg2 = [
'title' => '测试标题',
'des' => "测试描述",
'url' => 'https://www.baidu.com',
'thumburl' => 'http://wx.qlogo.cn/mmhead/ver_1/KI3hyxHcWsoicWUzJWUrwVZS1iczNeYNNR0EQ9Hq2KPAgHjF8JP3kicC2wPMrHP5CSNV0s9nTh2vObG49aFvdc5wozZokXC9psVibArhKobPgCU/132',
];
$msg = [
'image' => $client->getLoginQrcode(),
];
$msg = [
'userId' => 'wxid_t7p01dw592qt12',
'content' => '这个大牛很屌',
];
$msg = [
'voice'=>'AiMhU0lMS19WMwwApyt096juSeXgI3BDEACnLFlqPQmNdspT++Mlss2/JgCluLDgA+m8MFBvCGjrHkpjQNB3OJ1Cy0BPDP75FdOiAjM1MIOHUyUAsb1KFBbXevKo2m+9Ke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