# wx_pay_thinkcmf **Repository Path**: hongweizhiyuan/wx_pay_thinkcmf ## Basic Information - **Project Name**: wx_pay_thinkcmf - **Description**: 基于ThinkCMF底层来做的微信公众号支付模块 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-11-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #微信支付-基于ThinkCMF最底层框架来做 其实也就是:基于 ThinkPHP 来制作的!只不过把一些功能都集成到这里来了,方便易用! ## 1、使用 a.直接在支付上进行跳转 http://xxx.com/Pay/Weixinpay/weixinpay_js b.目前在类里接收价格、订单等参数! ## 2、文件结构 ``` ├─Application │ ├─Pay │ │ ├─Controller │ │ │ │─WeixinpayController.class.php 微信公众号支付 │ │ │ │ │─public function notify() notify_url接收页面 │ │ │ │ │─public function pay() 公众号支付 │ │ │ │ │─public function weixinpay_js() 跳转界面 │ ├─Common │ │ ├─Conf │ │ │ │ │─config.php 配置文件,rewrite=2 │ │ ├─Common │ │ │ │─function.php │ │ │ │ │─function curl_get_contents($url) 使用curl获取远程数据 ├─ThinkPHP │ ├─Library │ │ ├─Vendor │ │ │ │─Weixinpay │ │ │ │ │─Weixinpay.php 微信支付类 ├─tpl │ ├─Pay │ │ ├─Weixinpay │ │ │ │─pay.html 支付页面 ├─.htaccess 伪静态设置,,必须 ├─MP_verify_EOH4jxCPHol6JuYL.txt 微信支付根目录需要安装的文件(根据微信支付提示来设置) ```