/** * 绑定接口 * */ public function bind() { if ($_POST['ResultCode'] == '88') { import("ORG.Loan.Escrow"); $loan = new Escrow(); if ($loan->registerVerify($_POST)) { $str = ''; $user = M('members')->field('id')->where("user_name='{$_POST['LoanPlatformAccount']}'")->find(); $data = array('type' => $_POST['AccountType'], 'account' => $_POST['AccountNumber'], 'mobile' => $_POST['Mobile'], 'email' => $_POST['Email'], 'real_name' => $_POST['RealName'], 'id_card' => $_POST['IdentificationNo'], 'uid' => $user['id'], 'platform' => '', 'platform_marked' => $_POST['PlatformMoneymoremore'], 'qdd_marked' => $_POST['MoneymoremoreId'], 'add_time' => time()); if (M('escrow_account')->add($data)) { $str = "SUCCESS"; } else { $str = "ERROR"; } notifyMsg('绑定账号', $_POST, 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], $str); echo $str; exit; } } }