You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
<?php
|
|
require("../class/connect.php");
|
|
require("../class/db_sql.php");
|
|
require("../class/q_functions.php");
|
|
require("../member/class/user.php");
|
|
eCheckCloseMods('pay');//关闭模块
|
|
$link=db_connect();
|
|
$empire=new mysqlquery();
|
|
//支付平台
|
|
$paytype=RepPostVar($_GET['paytype']);
|
|
if(!$paytype)
|
|
{
|
|
printerror('请选择支付平台','',1,0,1);
|
|
}
|
|
$payr=$empire->fetch1("select * from {$dbtbpre}enewspayapi where paytype='$paytype' and isclose=0 limit 1");
|
|
if(!$payr[payid])
|
|
{
|
|
printerror('请选择支付平台','',1,0,1);
|
|
}
|
|
|
|
include('payfun.php');
|
|
|
|
//订单信息
|
|
$ddid=(int)getcvar('paymoneyddid');
|
|
$ddr=PayApiShopDdMoney($ddid);
|
|
$money=$ddr['tmoney'];
|
|
if(!$money)
|
|
{
|
|
printerror('订单金额有误','',1,0,1);
|
|
}
|
|
$ddno=$ddr[ddno];
|
|
$productname="支付订单号:".$ddno;
|
|
$productsay="订单号:".$ddno;
|
|
|
|
esetcookie("payphome","ShopPay",0);
|
|
//返回地址前缀
|
|
$PayReturnUrlQz=$public_r['newsurl'];
|
|
if(!stristr($public_r['newsurl'],'://'))
|
|
{
|
|
$PayReturnUrlQz=eReturnDomain().$public_r['newsurl'];
|
|
}
|
|
//char
|
|
if($ecms_config['sets']['pagechar']!='gb2312')
|
|
{
|
|
@include_once("../class/doiconv.php");
|
|
$iconv=new Chinese('');
|
|
$char=$ecms_config['sets']['pagechar']=='big5'?'BIG5':'UTF8';
|
|
$targetchar='GB2312';
|
|
$productname=$iconv->Convert($char,$targetchar,$productname);
|
|
$productsay=$iconv->Convert($char,$targetchar,$productsay);
|
|
@header('Content-Type: text/html; charset=gb2312');
|
|
}
|
|
$file=$payr['paytype'].'/to_pay.php';
|
|
@include($file);
|
|
db_close();
|
|
$empire=null;
|
|
?>
|