switch($data['MsgType']){
case "text" :
$this->Text($wechat,$data);
case "event":
if(!$data['EventKey']){
$text="没有EVENTKEY";
$this->logger("发送消息:\n".$text);
$this->Text($wechat,$data);
}
$this->eventKey($wechat,$data);
}
这样写了但是判断不出来
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
每个case结束时要加 break;