Commit ef2de433 by HanSon

减少依赖

1 parent b939743e
......@@ -17,7 +17,6 @@
"illuminate/support": "^5.3",
"nesbot/carbon": "^1.21",
"php": ">=7.0.0",
"symfony/var-dumper": "^3.2",
"aferrandini/phpqrcode": "^1.0",
"symfony/process": "^3.2",
"symfony/console": "^3.2"
......
......@@ -21,7 +21,8 @@ $robot->server->setCustomerHandler(function() use (&$flag){
// RemarkName,代表的改用户在你通讯录的名字
$contact = contact()->getUsernameByRemarkName('hanson');
if ($contact === false){
dd("找不到你要的联系人,请确认联系人姓名");
echo("找不到你要的联系人,请确认联系人姓名");
return;
}
if(!$flag){
Text::send($contact, '来轰炸吧');
......
......@@ -66,10 +66,14 @@ class MessageFactory
}
break;
case 49:
preg_match('/type>(\d+)<\/type/', $msg['Content'], $matches);
if($msg['Status'] == 3 && $msg['FileName'] === '微信转账'){
return new Transfer($msg);
}else{
}elseif($matches[1] === 5){
return new Share($msg);
}elseif($matches[1] === 33){
print_r('xcx');
// return new Share($msg);
}
case 37: // 好友验证
return new RequestFriend($msg);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!