Example #1
0
     $arrBank = keke_glob_class::get_bank();
     $arrOfflineLists = kekezu::get_payment_config('', 'offline', 1);
 case "3":
     switch ($paymode) {
         case "online":
             $arrPayInfo = $arrPaymentLists[$pay_type];
             break;
         case "offline":
             $arrBankInfo = db_factory::get_one(" select * from " . TABLEPRE . "witkey_auth_bank  where uid ='{$uid}' and auth_status=1 and bank_name='{$pay_type}'");
             $arrUserBankInfo = kekezu::get_table_data("*", "witkey_member_bank", 'uid=' . $uid, '', "", '', '');
             break;
     }
     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());
             $withdraw_obj->setWithdraw_status(3);
             $res = $withdraw_obj->edit_keke_witkey_withdraw();
             kekezu::admin_system_log($_lang['delete_audit_withdraw'] . $ids);
             break;
         case $_lang['mulit_review']:
             $withdraw_obj->setWhere(' withdraw_id in (' . $ids . ') ');
             $withdraw_arr = $withdraw_obj->query_keke_witkey_withdraw();
             foreach ($withdraw_arr as $k => $v) {
                 if ($v[withdraw_status] == 1) {
                     $fee = $v['withdraw_cash'] - keke_finance_class::get_to_cash($v['withdraw_cash']);
                     db_factory::execute(sprintf(' update %switkey_withdraw set fee=%.2f where withdraw_id=%d', TABLEPRE, $fee, $v['withdraw_id']));
                     $v_arr = array('网站名称' => $_K['sitename'], '提现方式' => $pay_way[$v['pay_type']], '帐户' => $v['pay_account'], '提现金额' => $v['withdraw_cash']);
                     keke_msg_class::notify_user($v['uid'], $v['username'], 'draw_success', $_lang['withdraw_success'], $v_arr);
                     $feed_arr = array("feed_username" => array("content" => $v['username'], "url" => "index.php?do=seller&id=" . $space_info['uid']), "action" => array("content" => $_lang['withdraw'], "url" => ""), "event" => array("content" => $_lang['withdraw_le'] . $v['withdraw_cash'] . $_lang['yuan'], "url" => ""));
                     kekezu::save_feed($feed_arr, $user_space_info['uid'], $user_space_info['username'], 'withdraw');
                     $withdraw_obj = new Keke_witkey_withdraw_class();
                     $withdraw_obj->setWhere(' withdraw_id in (' . $ids . ') ');
                     $withdraw_obj->setWithdraw_status(2);
                     $withdraw_obj->setProcess_uid($admin_info['uid']);
                     $withdraw_obj->setProcess_username($admin_info['username']);
                     $withdraw_obj->setProcess_time(time());
                     $withdraw_obj->edit_keke_witkey_withdraw();
                 }
             }
             kekezu::admin_system_log($_lang['audit_withdraw_apply'] . $ids);
             break;
     }
     kekezu::admin_show_msg($_lang['mulit_operate_success'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'success');
 } else {
     kekezu::admin_show_msg($_lang['choose_operate_item'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'warning');
 }