query("update {$dbtbpre}enewspayapi set isclose='$add[isclose]',payname='$add[payname]',paysay='$add[paysay]',payuser='$add[payuser]',paykey='$add[paykey]',payfee='$add[payfee]',payemail='$add[payemail]',myorder='$add[myorder]',paymethod='$add[paymethod]' where payid='$add[payid]'");
if($sql)
{
//操作日志
insert_dolog("payid=".$add[payid]."
payname=".$add[payname]);
printerror("EditPayApiSuccess","PayApi.php".hReturnEcmsHashStrHref2(1));
}
else
{
printerror("DbError","history.go(-1)");
}
}
//支付参数设置
function SetPayFen($add,$userid,$username){
global $empire,$dbtbpre;
$add[paymoneytofen]=(int)$add[paymoneytofen];
$add[payminmoney]=(int)$add[payminmoney];
if(empty($add[paymoneytofen]))
{
printerror("EmptySetPayFen","history.go(-1)");
}
$sql=$empire->query("update {$dbtbpre}enewspublic set paymoneytofen='$add[paymoneytofen]',payminmoney='$add[payminmoney]'");
if($sql)
{
//操作日志
insert_dolog("moneytofen=$add[paymoneytofen]&minmoney=$add[payminmoney]");
printerror("SetPayFenSuccess","SetPayFen.php".hReturnEcmsHashStrHref2(1));
}
else
{
printerror("DbError","history.go(-1)");
}
}
$enews=$_POST['enews'];
if(empty($enews))
{$enews=$_GET['enews'];}
if($enews)
{
hCheckEcmsRHash();
}
//增加用户
if($enews=="EditPayApi")
{
EditPayApi($_POST,$logininid,$loginin);
}
elseif($enews=="SetPayFen")
{
SetPayFen($_POST,$logininid,$loginin);
}
$sql=$empire->query("select payid,paytype,payfee,paylogo,paysay,payname,isclose from {$dbtbpre}enewspayapi order by myorder,payid");
?>
位置:在线支付> 管理支付接口 |
接口名称 |
接口描述 |
状态 |
接口类型 |
操作 |
=$r[payname]?> | =ehtmlspecialchars($r[paysay])?> |
=$r[isclose]==0?'开启':'关闭'?>
|
=$r[paytype]?>
|