<?php
/**
 * 二维码
 * @Copyright (C) 2016 汉潮 All rights reserved.
 * @License http://www.hanchao9999.com
 * @Author lss <lss@qq.com>
 */
namespace Home\Controller;
class TestController extends BaseController {
    
    public function runfend(){
        $pay_code='weixinsmall';
        //$pay_code='Alipayapi';
        //$pay_code='weixincode';
        //$pay_code='Alipayapp';
        $map=array();
        $map['code']=$pay_code;//支付方式
        $payconfig=M('Payment')->where($map)->field(true)->find();
        $pay = new \Common\Vendor\Pay($pay_code,$payconfig);
        $out_trade_no='20191021060253358';//网站单号
        $trade_no='4200000423201910219631339099';//第三方支付单号
        $refund_amount='0.01';//退款金额
        $pay->check();
		$RequestForm=$pay->refund($out_trade_no,$trade_no,$refund_amount,NOW_TIME);
        
        var_dump($RequestForm);
    }
}