可能文档介绍的不是很明确,这里出个demo
/**
* 同意好友请求:好友请求事件
* @param $request 接收的消息
* @return array
*/
protected function _agreeFriVer($request){
//Log::info("AgreeFriendVerify:".json_encode($request['msg']));
return [//自动同意好友请求
"event" => "AgreeFriendVerify",
"robot_wxid" => $request['robot_wxid'],
"to_wxid" => '',
"member_wxid" => '',
"member_name" => '',
"group_wxid" => '',
"msg" => $request['msg']
];
}