| 123456789101112131415161718192021222324252627 |
- <?php
- namespace app\admin\controller;
- use payment\wechat\WechatTransfers;
- class Index
- {
- public function index()
- {
- return redirect('/admin.php/home');
- }
- public function t1()
- {
- halt(11);
- $batch_name = '测试提现功能';//转账的名称
- $out_trade_no = 'lgd'.getUniId();//单号
- $money = 1;//金额
- $openid = 'o4a9g5ffjsMcXS9wCtTyONqMTdEc';//用户openid
- $detail = [];
- $transfers = new WechatTransfers();
- $detail[] = $transfers->getDetailList($out_trade_no,$money,$batch_name,$openid);
- $res = $transfers->transfers($batch_name,$detail);
- halt($res);
- }
- }
|