get_one("SELECT * FROM {$DT_PRE}finance_charge WHERE itemid='$priv1'"); if($r) { if($r['status'] == 0) { $charge_orderid = $r['itemid']; $charge_money = $r['amount'] + $r['fee']; $charge_amount = $r['amount']; $editor = 'N'.$bank; if($amount == padstr($charge_money*100, 12)) { require DT_ROOT.'/api/pay/success.inc.php'; exit('success'); } else { $note = '充值金额不匹配S:'.$charge_money.'R:'.$amount; $db->query("UPDATE {$DT_PRE}finance_charge SET status=1,receivetime='$DT_TIME',editor='$editor',note='$note' WHERE itemid=$charge_orderid");//支付失败 exit('fail'); } } else if($r['status'] == 1) { exit('fail'); } else if($r['status'] == 2) { exit('fail'); } else { exit('success'); } } else { exit('fail'); } } } exit('fail'); ?>=aid && !hasid) hasid = true; saveid += (saveid=='' ? saveids[i] : ','+saveids[i]); j++; if(j==20 && hasid) break; if(j==19 && !hasid) break; } } if(hasid) { alert("Ѿ벻Ҫظ "); return; } else saveid += ','+aid; SetCookie('diggid',saveid,1); } else { SetCookie('diggid',aid,1); } myajax = new DedeAjax(taget_obj,false,false,'','',''); var url = "/plus/digg_ajax.php?action="+ftype+"&id="+aid; myajax.SendGet2(url); DedeXHTTP = null; } function getDigg(aid) { var taget_obj = document.getElementById('newdigg'); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/plus/digg_ajax.php?id="+aid); DedeXHTTP = null; } -->
ߣ0771-2686798
<"; echo "订单号: [$orderno]
"; echo "订单日期: [$transdate]
"; echo "订单金额: [$amount]
"; echo "货币代码: [$currencycode]
"; echo "交易类型: [$transtype]
"; echo "交易状态: [$status]
"; echo "网关号: [$gateId]
"; echo "备注: [$priv1]
"; echo "签名值: [$checkvalue]
"; echo "===============================
"; */ //验证签名值,true 表示验证通过 $flag = verifyTransResponse($merid, $orderno, $amount, $currencycode, $transdate, $transtype, $status, $checkvalue); if($flag) { if($status == '1001') { //您的处理逻辑请写在这里,如更新数据库等。 //注意:如果您在提交时同时填写了页面返回地址和后台返回地址,且地址相同,请在这里先做一次数据库查询判断订单状态,以防止重复处理该笔订单 if($priv1 != $charge_orderid) { $charge_status = 2; $charge_errcode = '订单号不匹配'; $note = $charge_errcode.'S:'.$charge_orderid.'R:'.$priv1; log_write($note, 'rchinapay'); } else if($amount != padstr($charge_money*100, 12)) { $charge_status = 2; $charge_errcode = '充值金额不匹配'; $note = charge_errcode.'S:'.$charge_money.'R:'.$amount; log_write($note, 'rchinapay'); } else { $charge_status = 1; } } }div class="search">
正在跳转到<?php echo $PAY[$bank]['name'];?>在线支付平台... an'; mso-hansi-font-family: 'Times New Roman'">

Ʒרߣ

4경 ͼϴλλ

  • °ʱ ŵʱδ˷
  • ۼӱۿڼ齨¹˾Żۿڷֹ
  • èУֻ1980Ԫɼ
  • кˣеġЯ̡
  • ҵˮ
  • ˳ᣬһUPS
  • սƴ ƴ۸
  • Ե ˳е
  • ҵȡů Ĵ齨ɢ
  • ̾³ͻ800
  • ˳ʯ ݡʻվ
  • ع
  • O2Oʵ
  • δӯԴڵĵҵ
  • ʵ̣
  • ׹̹ 818ջսǰ
  • ·Žг
  • լʹѪػһ Ԫ¾޶
  • Roman"> ƹ [Ʒר]

    get_one("SELECT * FROM {$DT_PRE}finance_charge WHERE itemid='$itemid'"); if($r) { if($r['status'] == 0) { $charge_orderid = $r['itemid']; $charge_money = $r['amount'] + $r['fee']; $charge_amount = $r['amount']; $editor = 'N'.$bank; if($amount == $charge_money) { require DT_ROOT.'/api/pay/success.inc.php'; } else { $note = '充值金额不匹配S:'.$charge_money.'R:'.$amount; $db->query("UPDATE {$DT_PRE}finance_charge SET status=1,receivetime='$DT_TIME',editor='$editor',note='$note' WHERE itemid=$charge_orderid");//支付失败 } } } $rtnOK=1; //以下是我们快钱设置的show页面,商户需要自己定义该页面。 $rtnUrl = $MODULE[2]['linkurl'].'charge.php'; break; default: $rtnOK=1; //以下是我们快钱设置的show页面,商户需要自己定义该页面。 $rtnUrl = $MODULE[2]['linkurl'].'charge.php'; break; } } else { $rtnOK=1; //以下是我们快钱设置的show页面,商户需要自己定义该页面。 $rtnUrl = $MODULE[2]['linkurl'].'charge.php'; } ?> ont-size: 10.5pt; mso-ascii-font-family: Verdana; mso-hansi-font-family: 'Times New Roman'">ٶȿ——ÿ׼ʱ㣬ʱֽϵ
       
    ר˸——ÿҵ רǢһƱ
       
    ——ɻǩڳ˺ͬ½

    Ӯ˾ϵʽ

         ϵ绰

    ClientResponseHandler(); } function ClientResponseHandler() { $this->key = ""; $this->parameters = array(); $this->debugInfo = ""; $this->content = ""; } /** *获取密钥 */ function getKey() { return $this->key; } /** *设置密钥 */ function setKey($key) { $this->key = $key; } //设置原始内容,确保PHP环境支持simplexml_load_string以及iconv这两个函数才可以 //一般PHP5环境下没问题,PHP4需要检测一下环境是否安装了iconv以及simplexml模块 function setContent($content) { $this->content = $content; if(function_exists('libxml_disable_entity_loader')) libxml_disable_entity_loader(true); $xml = simplexml_load_string($this->content); $encode = $this->getXmlEncode($this->content); if($xml && $xml->children()) { foreach ($xml->children() as $node){ //有子节点 if($node->children()) { $k = $node->getName(); $nodeXml = $node->asXML(); $v = substr($nodeXml, strlen($k)+2, strlen($nodeXml)-2*strlen($k)-5); } else { $k = $node->getName(); $v = (string)$node; } if($encode!="" && $encode != "UTF-8") { $k = iconv("UTF-8", $encode, $k); $v = iconv("UTF-8", $encode, $v); } $this->setParameter($k, $v); } } } //设置原始内容 //解决PHP4老环境下不支持simplexml以及iconv功能的函数 function setContent_backup($content) { $this->content = $content; $encode = $this->getXmlEncode($this->content); $xml = new SofeeXmlParser(); $xml->parseFile($this->content); $tree = $xml->getTree(); unset($xml); foreach ($tree['root'] as $key => $value) { if($encode!="" && $encode != "UTF-8") { $k = mb_convert_encoding($key, $encode, "UTF-8"); $v = mb_convert_encoding($value[value], $encode, "UTF-8"); } else { $k = $key; $v = $value[value]; } $this->setParameter($k, $v); } } //获取原始内容 function getContent() { return $this->content; } /** *获取参数值 */ function getParameter($parameter) { return $this->parameters[$parameter]; } /** *设置参数值 */ function setParameter($parameter, $parameterValue) { $this->parameters[$parameter] = $parameterValue; } /** *获取所有请求的参数 *@return array */ function getAllParameters() { return $this->parameters; } /** *是否财付通签名,规则是:按参数名称a-z排序,遇到空值的参数不参加签名。 *true:是 *false:否 */ function isTenpaySign() { $signPars = ""; ksort($this->parameters); foreach($this->parameters as $k => $v) { if("sign" != $k && "" != $v) { $signPars .= $k . "=" . $v . "&"; } } $signPars .= "key=" . $this->getKey(); $sign = strtolower(md5($signPars)); $tenpaySign = strtolower($this->getParameter("sign")); //debug信息 $this->_setDebugInfo($signPars . " => sign:" . $sign . " tenpaySign:" . $this->getParameter("sign")); return $sign == $tenpaySign; } /** *获取debug信息 */ function getDebugInfo() { return $this->debugInfo; } //获取xml编码 function getXmlEncode($xml) { $ret = preg_match ("/]* encoding=\"(.*)\"[^>]* ?>/i", $xml, $arr); if($ret) { return strtoupper ( $arr[1] ); } else { return ""; } } /** *设置debug信息 */ function _setDebugInfo($debugInfo) { $this->debugInfo = $debugInfo; } /** * 是否财付通签名 * @param signParameterArray 签名的参数数组 * @return boolean */ function _isTenpaySign($signParameterArray) { $signPars = ""; foreach($signParameterArray as $k) { $v = $this->getParameter($k); if("sign" != $k && "" != $v) { $signPars .= $k . "=" . $v . "&"; } } $signPars .= "key=" . $this->getKey(); $sign = strtolower(md5($signPars)); $tenpaySign = strtolower($this->getParameter("sign")); //debug信息 $this->_setDebugInfo($signPars . " => sign:" . $sign . " tenpaySign:" . $this->getParameter("sign")); return $sign == $tenpaySign; } } ?>ter mt2 clear">

    ڱվ | վ | ֧ | | վͼ | ƸӢ | | Ͷ | |

    ֻ15607710285 ͷ棺0771-2686798ѯߣ0771-2686798 QQ286077410
    Ӯ޹˾ - Ȩ ICP09002842
    Copyright2009-2015 nn568.com. All Rights Reserved