You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
589 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
// 定义命名空间,用于组织代码
namespace LaneWeChat;
// 引入Wechat类该类位于Core命名空间下用于处理微信相关功能
use LaneWeChat\Core\Wechat;
// 引入配置文件
include_once __DIR__.'/config.php';
// 引入自动加载器文件
include_once __DIR__.'/autoloader.php';
// 注册自动加载器,这样可以自动加载所需的类文件
AutoLoader::register();
// 创建WeChat类的实例传入WECHAT_TOKEN和调试模式参数
$wechat = new WeChat(WECHAT_TOKEN, TRUE);
// 运行WeChat实例输出处理结果
echo $wechat->run();