Example #1
0
     }
     break;
 case "4":
     if ($intSbtWithdraw) {
         $objWithdrawM = new Keke_witkey_withdraw_class();
         if (isset($formhash) && kekezu::submitcheck($formhash)) {
             if ($gUserInfo['balance'] < floatval($intWithdrawCash)) {
                 $tips['errors']['intWithdrawCash'] = '您的金额不足以提现';
                 kekezu::show_msg($tips, $strUrl . "&strStep=1&intReset=1", NULL, NULL, 'error');
             }
             if (strtoupper(CHARSET) == 'GBK') {
                 $pay_username = kekezu::utftogbk($pay_username);
                 $pay_account = kekezu::utftogbk($pay_account);
             }
             $objWithdrawM->setWithdraw_cash(floatval($intWithdrawCash));
             $objWithdrawM->setUid($uid);
             $objWithdrawM->setUsername($username);
             $objWithdrawM->setPay_username($pay_username);
             $objWithdrawM->setWithdraw_status(1);
             $objWithdrawM->setApplic_time(time());
             $objWithdrawM->setPay_type($pay_type);
             $objWithdrawM->setPay_account($pay_account);
             $intWithdrawId = $objWithdrawM->create_keke_witkey_withdraw();
             if ($intWithdrawId) {
                 unset($_SESSION['withdraw_cash']);
                 $arrPayway = array_merge(keke_glob_class::get_bank(), keke_glob_class::get_online_pay());
                 $data = array(':pay_way' => $arrPayway[$pay_type], ':pay_account' => $pay_account, ':pay_name' => $pay_username);
                 keke_finance_class::init_mem('withdraw', $data);
                 keke_finance_class::cash_out($uid, abs(floatval($intWithdrawCash)), 'withdraw', 0, 'withdraw', $intWithdrawId);
                 kekezu::show_msg('提交成功等待审核', $strUrl . "&strStep=4&intWithdrawCash={$intWithdrawCash}&intWithdrawId={$intWithdrawId}&ver=1#userCenter", NULL, NULL, 'ok');
             } else {