# 极梦微信提现和退款 **Repository Path**: jinan-jimeng-network_0/jm ## Basic Information - **Project Name**: 极梦微信提现和退款 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-05-15 - **Last Updated**: 2021-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信提现和退款 #### 介绍 #### 软件架构 ![输入图片说明](https://images.gitee.com/uploads/images/2021/0515/111142_93d56c86_8373568.png "在这里输入图片标题") #### 安装教程 放在thinkphp的extend下面 #### 使用说明 把下属代码复制到控制器就可以使用了 ``` $appid]; // $data= ["appid"=>"1","mch_id"=>"1","key"=>"1","apiclient_cert"=>"1","apiclient_key"=>"1"] $WeChatWithdraw=new WeChatWithdraw($data); $WeChatWithdrawpay=$WeChatWithdraw->WechatWithdrawal($re_openid,$amount); var_dump($WeChatWithdrawpay);die; } /** *微信退款 * */ public function Refund(){ $total_fee = 1; //退款金额 单位元 $order_sn='支付订单号'; //$out_refund_no 商户退款单号 自定义而已 $out_refund_no = 'refund'.time(); $appid=Config::get("site.Applets_appid"); // $appid=Config::get("site.wechat_pay_appid"); $data= ["appid"=>$appid]; // $data= ["appid"=>"1","mch_id"=>"1","key"=>"1","apiclient_cert"=>"1","apiclient_key"=>"1"] $WeChatWithdraw=new WeChatRefund($data); $WeChatWithdrawpay=$WeChatWithdraw->Refund($total_fee,$total_fee,$order_sn,$out_refund_no); var_dump($WeChatWithdrawpay);die; } } ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)