Ejemplo n.º 1
0
 /**
  * 充值通知地址
  * 
  */
 public function charge()
 {
     import("ORG.Loan.Escrow");
     $loan = new Escrow();
     if ($loan->chargeVerify($_POST) && $_POST['ResultCode'] == '88') {
         $str = '';
         $orders = $_POST['OrderNo'];
         $id = substr($orders, 12);
         $info = M('member_payonline')->where('id=' . $id)->find();
         if ($info['status'] == 1) {
             $str = 'SUCCESS';
         } else {
             $updata = array('status' => '1', 'loan_no' => $_POST['LoanNo']);
             if (memberMoneyLog($info['uid'], 3, $_POST['Amount'], "在线充值")) {
                 M("member_payonline")->where('id=' . $id)->save($updata);
                 //核实成功,
                 $str = "SUCCESS";
             } else {
                 $str = 'ERROR';
             }
         }
         notifyMsg('充值', $_POST, 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], $str);
         echo $str;
         exit;
     }
 }