ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1.路径与index.php文件持平 ~~~ require_once "../extend/WxPay/lib/WxPay.Api.php"; require_once "../extend/WxPay/example/WxPay.JsApiPay.php"; require_once "../extend/WxPay/example/WxPay.Config.php"; require_once "../extend/WxPay/lib/WxPay.Data.php"; ~~~ 2.不加路径 ~~~ $input = new \WxPayUnifiedOrder(); $config = new \WxPayConfig(); $order = new \WxPayApi(); ~~~ 3.被引入的库文件引入路径同样要改 ~~~ require_once "../extend/WxPay/lib/WxPay.Exception.php"; require_once "../extend/WxPay/lib/WxPay.Config.Interface.php"; require_once "../extend/WxPay/lib/WxPay.Data.php"; ~~~