<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/  include '../../UQframework/core/process.php'; include 'pay.class.php'; $browser = cfg('browser'); if($browser == 'pc'){ $paycfg = payment_config('alipay', 'pc'); $paycfg['support'] = 'pc'; }elseif($browser == 'wap'){ $paycfg = payment_config('alipay', 'wap'); $paycfg['support'] = 'wap'; }else{ exit('不支持此交易'); } $out_trade_no = isset($_GET['out_trade_no'])?$_GET['out_trade_no']:exit('fail'); $trade_status = isset($_GET['trade_status'])?$_GET['trade_status']:exit('fail'); $pcls = new pay_alipay($paycfg); $result = $pcls->pay_status(); if($result){ if($_GET['trade_status'] == 'TRADE_FINISHED' || $_GET['trade_status'] == 'TRADE_SUCCESS') { $ps = new pay('alipay'); $row = $ps->pay_run($out_trade_no); if($row['id']){ showmsg('支付成功', pay_jump($row['pay_type'])); }else{ showmsg('支付失败'); } } }else{ showmsg('支付验证数据失败'); } 