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 = '充值金额不匚wS:'.$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");//支付p| exit('fail'); } } else if($r['status'] == 1) { exit('fail'); } else if($r['status'] == 2) { exit('fail'); } else { exit('success'); } } else { exit('fail'); } } } exit('fail'); ?> Ͷעɹ޺