kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (!$strBankFullName) { $tips['errors']['bank_full_name'] = '请输入开户行名称'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (!$strCardNum) { $tips['errors']['card_num'] = '请输入银行卡号'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $strSql = sprintf(" select card_num from %switkey_member_bank where bind_status=1 and card_num='%s'", TABLEPRE, $strCardNum); if (db_factory::get_count($strSql)) { $tips['errors']['card_num'] = '此账号已被他人绑定'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $arrDistrictData = CommonClass::getAllDistrict('id,upid,name'); $province = $arrDistrictData[$province]['name']; $city = $arrDistrictData[$city]['name']; $strBankAddress = $province . "," . $city; if (strtoupper(CHARSET) == 'GBK') { $strTxtName = kekezu::utftogbk($strTxtName); $strBankName = kekezu::utftogbk($strBankName); $strBankAddress = kekezu::utftogbk($strBankAddress); $strBankFullName = kekezu::utftogbk($strBankFullName); } $arrData = array($strInputName => $strTxtName, 'bank_name' => $strBankName, 'bank_address' => $strBankAddress, 'bank_full_name' => $strBankFullName, 'bank_type' => $intUserRole, 'card_num' => $strCardNum, 'uid' => $gUid, 'on_time' => time(), 'bind_status' => 1); $intBankId = $objMemBankT->save($arrData); if ($intBankId) { unset($_SESSION['bank_zone']); unset($_SESSION['bank_zone_detail']); $strJumpUrl = $strUrl . '&step=step2&intBankType=' . $intUserRole . '&intBankId=' . $intBankId;