/88li/include/function/pay.php
PHP | 601 lines | 524 code | 59 blank | 18 comment | 18 complexity | b8dee6ee7a890aedd0b3149982517836 MD5 | raw file
- <?php
- /* payment: alipay */
- function pay_team_alipay($total_money, $order) {
- global $INI; if($total_money<=0||!$order) return null;
- //$team = Table::Fetch('team', $order['team_id']);
- $order_id = $order['id'];
- $pay_id = $order['pay_id'];
- $guarantee = strtoupper($INI['alipay']['guarantee'])=='Y';
- /* param */
- $_input_charset = 'utf-8';
- $service = $guarantee ? 'create_partner_trade_by_buyer' : 'create_direct_pay_by_user';
- $partner = $INI['alipay']['mid'];
- $security_code = $INI['alipay']['sec'];
- $seller_email = $INI['alipay']['acc'];
- $itbpay = strval($INI['alipay']['itbpay']);
- $sign_type = 'MD5';
- $out_trade_no = $pay_id;
- $return_url = $INI['system']['wwwprefix'] . '/order/alipay/return.php';
- $notify_url = $INI['system']['wwwprefix'] . '/order/alipay/notify.php';
- $show_url = $INI['system']['wwwprefix'] . "/order/pay.php?id={$order['gen_id']}";
- $show_url = obscure_rep($show_url);
- //$subject = mb_substr(strip_tags($team['title']),0,128,'UTF-8');
- $subject = '??'.$INI['system']['orderpre'].$order['gen_id'].'??';
- $orderDetail = payOrderDetail($order);
- $body = $orderDetail?$orderDetail:$show_url;
- $quantity = $order['quantity'];
- $parameter = array(
- "service" => $service,
- "partner" => $partner,
- "return_url" => $return_url,
- "notify_url" => $notify_url,
- "_input_charset" => $_input_charset,
- "subject" => $subject,
- "body" => $body,
- "out_trade_no" => $out_trade_no,
- "total_fee" => $total_money,
- "payment_type" => "1",
- "show_url" => $show_url,
- "seller_email" => $seller_email,
- );
- if ($itbpay) $parameter['it_b_pay'] = $itbpay;
- $alipay = new AlipayService($parameter, $security_code, $sign_type);
- $sign = $alipay->Get_Sign();
- $reqUrl = $alipay->create_url();
- return render('block_pay_alipay', array(
- 'order_id' => $order['gen_id'],
- 'reqUrl' => $reqUrl,
- ));
- }
- function pay_charge_alipay($total_money, $charge_id, $title) {
- global $INI; if($total_money<=0||!$title) return null;
- $order_id = 'charge';
- /* param */
- $_input_charset = 'utf-8';
- $service = 'create_direct_pay_by_user';
- $partner = $INI['alipay']['mid'];
- $security_code = $INI['alipay']['sec'];
- $seller_email = $INI['alipay']['acc'];
- $itbpay = strval($INI['alipay']['itbpay']);
- $sign_type = 'MD5';
- $out_trade_no = $charge_id;
- $return_url = $INI['system']['wwwprefix'] . '/order/alipay/return.php';
- $notify_url = $INI['system']['wwwprefix'] . '/order/alipay/notify.php';
- $show_url = $INI['system']['wwwprefix'] . "/credit/index.php";
- $subject = $title;
- $body = $show_url;
- $quantity = 1;
- $parameter = array(
- "service" => $service,
- "partner" => $partner,
- "return_url" => $return_url,
- "notify_url" => $notify_url,
- "_input_charset" => $_input_charset,
- "subject" => $subject,
- "body" => $body,
- "out_trade_no" => $out_trade_no,
- "total_fee" => $total_money,
- "payment_type" => "1",
- "show_url" => $show_url,
- "seller_email" => $seller_email,
- );
- if ($itbpay) $parameter['it_b_pay'] = $itbpay;
- $alipay = new AlipayService($parameter, $security_code, $sign_type);
- $sign = $alipay->Get_Sign();
- $reqUrl = $alipay->create_url();
- return render('block_pay_alipay', array(
- 'order_id' => $order_id,
- 'reqUrl' => $reqUrl,
- ));
- }
- /* payment: tenpay */
- function pay_team_tenpay($total_money, $order) {
- global $INI; if($total_money<=0||!$order) return null;
- //$team = Table::Fetch('team', $order['team_id']);
- $order_id = $order['id'];
- $v_mid = $INI['tenpay']['mid'];
- $v_url = $INI['system']['wwwprefix']. '/order/tenpay/return.php';
- $key = $INI['tenpay']['sec'];
- $v_oid = $order['pay_id'];
- $v_amount = intval($total_money * 100);
- $v_moneytype = $INI['system']['currencyname'];
- $text = $v_amount.$v_moneytype.$v_oid.$v_mid.$v_url.$key;
- /* must */
- $sp_billno = $v_oid;
- $transaction_id = $v_mid. date('Ymd'). date('His') .rand(1000,9999);
- $desc = mb_convert_encoding('??'.$INI['system']['orderpre'].$order['gen_id'].'??', 'GBK', 'UTF-8');
- /* end */
- $reqHandler = new PayRequestHandler();
- $reqHandler->init();
- $reqHandler->setKey($key);
- $reqHandler->setParameter("bargainor_id", $v_mid);
- $reqHandler->setParameter("cs", "GBK");
- $reqHandler->setParameter("sp_billno", $sp_billno);
- $reqHandler->setParameter("transaction_id", $transaction_id);
- $reqHandler->setParameter("total_fee", $v_amount);
- $reqHandler->setParameter("return_url", $v_url);
- $reqHandler->setParameter("desc", $desc);
- $reqHandler->setParameter("spbill_create_ip", Utility::GetRemoteIp());
- $reqUrl = $reqHandler->getRequestURL();
- if($_POST['paytype']!='tenpay') {
- $reqHandler->setParameter('bank_type', pay_getqqbank($_POST['paytype']));
- $reqUrl = $reqHandler->getRequestURL();
- redirect( $reqUrl );
- }
- return render('block_pay_tenpay', array(
- 'order_id' => $order['gen_id'],
- 'reqUrl' => $reqUrl,
- ));
- }
- function pay_charge_tenpay($total_money, $charge_id, $title) {
- global $INI; if($total_money<=0||!$title) return null;
- $order_id = 'charge';
- $v_mid = $INI['tenpay']['mid'];
- $v_url = $INI['system']['wwwprefix']. '/order/tenpay/return.php';
- $key = $INI['tenpay']['sec'];
- $v_oid = $charge_id;
- $v_amount = intval($total_money * 100);
- $v_moneytype = $INI['system']['currencyname'];
- $text = $v_amount.$v_moneytype.$v_oid.$v_mid.$v_url.$key;
- /* must */
- $sp_billno = $v_oid;
- $transaction_id = $v_mid. date('Ymd'). date('His') .rand(1000,9999);
- $desc = mb_convert_encoding($title, 'GBK', 'UTF-8');
- /* end */
- $reqHandler = new PayRequestHandler();
- $reqHandler->init();
- $reqHandler->setKey($key);
- $reqHandler->setParameter("bargainor_id", $v_mid);
- $reqHandler->setParameter("cs", "GBK");
- $reqHandler->setParameter("sp_billno", $sp_billno);
- $reqHandler->setParameter("transaction_id", $transaction_id);
- $reqHandler->setParameter("total_fee", $v_amount);
- $reqHandler->setParameter("return_url", $v_url);
- $reqHandler->setParameter("desc", $desc);
- $reqHandler->setParameter("spbill_create_ip", Utility::GetRemoteIp());
- $reqUrl = $reqHandler->getRequestURL();
- if($_POST['paytype']!='tenpay') {
- $reqHandler->setParameter('bank_type', pay_getqqbank($_POST['paytype']));
- $reqUrl = $reqHandler->getRequestURL();
- redirect( $reqUrl );
- }
- return render('block_pay_tenpay', array(
- 'order_id' => $order_id,
- 'reqUrl' => $reqUrl,
- ));
- }
- /* payment: chinabank */
- function pay_team_chinabank($total_money, $order) {
- global $INI; if($total_money<=0||!$order) return null;
- $team = Table::Fetch('team', $order['team_id']);
- $order_id = $order['id'];
- $v_mid = $INI['chinabank']['mid'];
- $v_url = $INI['system']['wwwprefix']. '/order/chinabank/return.php';
- $key = $INI['chinabank']['sec'];
- $v_oid = $order['pay_id'];
- $v_amount = $total_money;
- $v_moneytype = $INI['system']['currencyname'];
- $text = $v_amount.$v_moneytype.$v_oid.$v_mid.$v_url.$key;
- $v_md5info = strtoupper(md5($text));
- return render('block_pay_chinabank', array(
- 'order_id' => $order_id,
- 'v_mid' => $v_mid,
- 'v_url' => $v_url,
- 'key' => $key,
- 'v_oid' => $v_oid,
- 'v_moneytype' => $v_moneytype,
- 'v_md5info' => $v_md5info,
- ));
- }
- function pay_charge_chinabank($total_money, $charge_id, $title) {
- global $INI; if($total_money<=0||!$title) return null;
- $order_id = 'charge';
- $v_mid = $INI['chinabank']['mid'];
- $v_url = $INI['system']['wwwprefix']. '/order/chinabank/return.php';
- $key = $INI['chinabank']['sec'];
- $v_oid = $charge_id;
- $v_amount = $total_money;
- $v_moneytype = $INI['system']['currencyname'];
- $text = $v_amount.$v_moneytype.$v_oid.$v_mid.$v_url.$key;
- $v_md5info = strtoupper(md5($text));
- return render('block_pay_chinabank', array(
- 'order_id' => $order_id,
- 'v_mid' => $v_mid,
- 'v_url' => $v_url,
- 'key' => $key,
- 'v_oid' => $v_oid,
- 'v_moneytype' => $v_moneytype,
- 'v_md5info' => $v_md5info,
- ));
- }
- /* payment: bill */
- function pay_team_bill($total_money, $order) {
- global $INI, $login_user; if($total_money<=0||!$order) return null;
- $team = Table::Fetch('team', $order['team_id']);
- $order_id = $order['id'];
- $merchantAcctId = $INI['bill']['mid'];
- $key = $INI['bill']['sec'];
- $inputCharset = "1";
- $pageUrl = $INI['system']['wwwprefix'] . '/order/bill/return.php';
- $bgUrl = $INI['system']['wwwprefix'] . '/order/bill/return.php';
- $version = "v2.0";
- $language = "1";
- $signType = "1";
- $payerName = $login_user['username'];
- $payerContactType = "1";
- $payerContact = $login_user['email'];
- $orderId = $order['pay_id'];
- $orderAmount = intval($total_money * 100);
- $orderTime = date('YmdHis');
- //$productName = mb_substr(strip_tags($team['title']),0,255,'UTF-8');
- $productName = '??'.$INI['system']['orderpre'].$order['gen_id'].'??';
- $productNum="1";
- $productId="";
- $productDesc="";
- $ext1="";
- $ext2="";
- $payType="00";
- $bankId="";
- $redoFlag="0";
- $pid="";
- $sv = billAppendParam($sv,"inputCharset",$inputCharset);
- $sv = billAppendParam($sv,"pageUrl",$pageUrl);
- $sv = billAppendParam($sv,"bgUrl",$bgUrl);
- $sv = billAppendParam($sv,"version",$version);
- $sv = billAppendParam($sv,"language",$language);
- $sv = billAppendParam($sv,"signType",$signType);
- $sv = billAppendParam($sv,"merchantAcctId",$merchantAcctId);
- $sv = billAppendParam($sv,"payerName",$payerName);
- $sv = billAppendParam($sv,"payerContactType",$payerContactType);
- $sv = billAppendParam($sv,"payerContact",$payerContact);
- $sv = billAppendParam($sv,"orderId",$orderId);
- $sv = billAppendParam($sv,"orderAmount",$orderAmount);
- $sv = billAppendParam($sv,"orderTime",$orderTime);
- $sv = billAppendParam($sv,"productName",$productName);
- $sv = billAppendParam($sv,"productNum",$productNum);
- $sv = billAppendParam($sv,"productId",$productId);
- $sv = billAppendParam($sv,"productDesc",$productDesc);
- $sv = billAppendParam($sv,"ext1",$ext1);
- $sv = billAppendParam($sv,"ext2",$ext2);
- $sv = billAppendParam($sv,"payType",$payType);
- $sv = billAppendParam($sv,"bankId",$bankId);
- $sv = billAppendParam($sv,"redoFlag",$redoFlag);
- $sv = billAppendParam($sv,"pid",$pid);
- $sv = billAppendParam($sv,"key",$key);
- $signMsg= strtoupper(md5($sv));
- return render('block_pay_bill', array(
- 'order_id' => $order_id,
- 'merchantAcctId' => $merchantAcctId,
- 'key' => $key,
- 'inputCharset' => $inputCharset,
- 'pageUrl' => $pageUrl,
- 'bgUrl' => $bgUrl,
- 'version' => $version,
- 'language' => $language,
- 'signType' => $signType,
- 'payerName' => $payerName,
- 'payerContactType' => $payerContactType,
- 'payerContact' => $payerContact,
- 'orderId' => $orderId,
- 'orderAmount' => $orderAmount,
- 'orderTime' => $orderTime,
- 'productName' => $productName,
- 'productNum' => $productNum,
- 'productId' => $productId,
- 'productDesc' => $productDesc,
- 'ext1' => $ext1,
- 'ext2' => $ext2,
- 'payType' => $payType,
- 'bankId' => $bankId,
- 'redoFlag' => $redoFlag,
- 'pid' => $pid,
- 'signMsg' => $signMsg,
- ));
- }
- function pay_charge_bill($total_money, $charge_id, $title) {
- global $INI, $login_user; if($total_money<=0||!$title) return null;
- $order_id = 'charge';
- $merchantAcctId = $INI['bill']['mid'];
- $key = $INI['bill']['sec'];
- $inputCharset = "1";
- $pageUrl = $INI['system']['wwwprefix'] . '/order/bill/return.php';
- $bgUrl = $INI['system']['wwwprefix'] . '/order/bill/return.php';
- $version = "v2.0";
- $language = "1";
- $signType = "1";
- $payerName = $login_user['username'];
- $payerContactType = "1";
- $payerContact = $login_user['email'];
- $orderId = $charge_id;
- $orderAmount = intval($total_money * 100);
- $orderTime = date('YmdHis');
- $productName = mb_substr(strip_tags($title),0,255,'UTF-8');
- $productNum="1";
- $productId="";
- $productDesc="";
- $ext1="";
- $ext2="";
- $payType="00";
- $bankId="";
- $redoFlag="0";
- $pid="";
- $sv = billAppendParam($sv,"inputCharset",$inputCharset);
- $sv = billAppendParam($sv,"pageUrl",$pageUrl);
- $sv = billAppendParam($sv,"bgUrl",$bgUrl);
- $sv = billAppendParam($sv,"version",$version);
- $sv = billAppendParam($sv,"language",$language);
- $sv = billAppendParam($sv,"signType",$signType);
- $sv = billAppendParam($sv,"merchantAcctId",$merchantAcctId);
- $sv = billAppendParam($sv,"payerName",$payerName);
- $sv = billAppendParam($sv,"payerContactType",$payerContactType);
- $sv = billAppendParam($sv,"payerContact",$payerContact);
- $sv = billAppendParam($sv,"orderId",$orderId);
- $sv = billAppendParam($sv,"orderAmount",$orderAmount);
- $sv = billAppendParam($sv,"orderTime",$orderTime);
- $sv = billAppendParam($sv,"productName",$productName);
- $sv = billAppendParam($sv,"productNum",$productNum);
- $sv = billAppendParam($sv,"productId",$productId);
- $sv = billAppendParam($sv,"productDesc",$productDesc);
- $sv = billAppendParam($sv,"ext1",$ext1);
- $sv = billAppendParam($sv,"ext2",$ext2);
- $sv = billAppendParam($sv,"payType",$payType);
- $sv = billAppendParam($sv,"bankId",$bankId);
- $sv = billAppendParam($sv,"redoFlag",$redoFlag);
- $sv = billAppendParam($sv,"pid",$pid);
- $sv = billAppendParam($sv,"key",$key);
- $signMsg= strtoupper(md5($sv));
- return render('block_pay_bill', array(
- 'order_id' => $order_id,
- 'merchantAcctId' => $merchantAcctId,
- 'key' => $key,
- 'inputCharset' => $inputCharset,
- 'pageUrl' => $pageUrl,
- 'bgUrl' => $bgUrl,
- 'version' => $version,
- 'language' => $language,
- 'signType' => $signType,
- 'payerName' => $payerName,
- 'payerContactType' => $payerContactType,
- 'payerContact' => $payerContact,
- 'orderId' => $orderId,
- 'orderAmount' => $orderAmount,
- 'orderTime' => $orderTime,
- 'productName' => $productName,
- 'productNum' => $productNum,
- 'productId' => $productId,
- 'productDesc' => $productDesc,
- 'ext1' => $ext1,
- 'ext2' => $ext2,
- 'payType' => $payType,
- 'bankId' => $bankId,
- 'redoFlag' => $redoFlag,
- 'pid' => $pid,
- 'signMsg' => $signMsg,
- ));
- }
- /* payment: paypal */
- function pay_team_paypal($total_money, $order) {
- global $INI, $login_user; if($total_money<=0||!$order) return null;
- $team = Table::Fetch('team', $order['team_id']);
-
- $order_id = $order['id'];
- $cmd = '_xclick';
- $business = $INI['paypal']['mid'];
- $location = $INI['paypal']['loc'];
- $currency_code = $INI['system']['currencyname'];
- $item_number = $order['pay_id'];
- $item_name = $team['title'];
- $amount = $total_money;
- $quantity = 1;
- $post_url = "https://www.paypal.com/row/cgi-bin/webscr";
- $return_url = $INI['system']['wwwprefix'] . '/order/index.php';
- $notify_url = $INI['system']['wwwprefix'] . '/order/paypal/ipn.php';
- $cancel_url = $INI['system']['wwwprefix'] . "/order/index.php";
- return render('block_pay_paypal', array(
- 'order_id' => $order_id,
- 'cmd' => $cmd,
- 'business' => $business,
- 'location' => $location,
- 'currency_code' => $currency_code,
- 'item_number' => $item_number,
- 'item_name' => $item_name,
- 'amount' => $amount,
- 'quantity' => $quantity,
- 'post_url' => $post_url,
- 'return_url' => $return_url,
- 'notify_url' => $notify_url,
- 'cancel_url' => $cancel_url,
- 'login_user' => $login_user,
- ));
- }
- function pay_charge_paypal($total_money, $charge_id, $title) {
- global $INI, $login_user; if($total_money<=0||!$title) return null;
- $order_id = 'charge';
- $cmd = '_xclick';
- $business = $INI['paypal']['mid'];
- $location = $INI['paypal']['loc'];
- $currency_code = $INI['system']['currencyname'];
- $item_number = $charge_id;
- $item_name = $title;
- $amount = $total_money;
- $quantity = 1;
- $post_url = "https://www.paypal.com/row/cgi-bin/webscr";
- $return_url = $INI['system']['wwwprefix'] . '/order/index.php';
- $notify_url = $INI['system']['wwwprefix'] . '/order/paypal/ipn.php';
- $cancel_url = $INI['system']['wwwprefix'] . "/order/index.php";
- return render('block_pay_paypal', array(
- 'order_id' => $order_id,
- 'cmd' => $cmd,
- 'business' => $business,
- 'location' => $location,
- 'currency_code' => $currency_code,
- 'item_number' => $item_number,
- 'item_name' => $item_name,
- 'amount' => $amount,
- 'quantity' => $quantity,
- 'post_url' => $post_url,
- 'return_url' => $return_url,
- 'notify_url' => $notify_url,
- 'cancel_url' => $cancel_url,
- 'login_user' => $login_user,
- ));
- }
- /* payment: yeepay */
- function pay_team_yeepay($total_money, $order) {
- global $INI, $login_user; if($total_money<=0||!$order) return null;
- $team = Table::Fetch('team', $order['team_id']);
- require_once( WWW_ROOT . '/order/yeepay/yeepayCommon.php');
- $order_id = $order['id'];
- $pay_id = $order['pay_id'];
- $p0_Cmd = 'Buy';
- $p1_MerId = $INI['yeepay']['mid'];
- $p2_Order = $pay_id;
- $p3_Amt = $total_money;
- $p4_Cur = "CNY";
- $p5_Pid = "ZuituGo-{$_SERVER['HTTP_HOST']}({$team['id']})";
- $p6_Pcat = '';
- $p5_Pdesc = "ZuituGo-{$_SERVER['HTTP_HOST']}({$team['id']})";
- $p8_Url = $INI['system']['wwwprefix'] . '/order/yeepay/callback.php';
- $p9_SAF = '0';
- $pa_MP = '';
- $pd_FrpId = strval($_REQUEST['pd_FrpId']);
- $pr_NeedResponse = '1';
- $merchantKey = $INI['yeepay']['sec'];
- $hmac = getReqHmacString($p1_MerId,$p2_Order,$p3_Amt,$p4_Cur,$p5_Pid,$p6_Pcat,$p7_Pdesc,$p8_Url,$pa_MP,$pd_FrpId,$pr_NeedResponse,$merchantKey);
- return render('block_pay_yeepay', array(
- 'order_id' => $order_id,
- 'p0_Cmd' => $p0_Cmd,
- 'p1_MerId' => $p1_MerId,
- 'p2_Order' => $p2_Order,
- 'p3_Amt' => $p3_Amt,
- 'p4_Cur' => $p4_Cur,
- 'p5_Pid' => $p5_Pid,
- 'p6_Pcat' => $p6_Pcat,
- 'p7_Pdesc' => $p7_Pdesc,
- 'p8_Url' => $p8_Url,
- 'p9_SAF' => $p9_SAF,
- 'pa_MP' => $pa_MP,
- 'pd_FrpId' => $pd_FrpId,
- 'pr_NeedResponse' => $pr_NeedResponse,
- 'merchantKey' => $merchantKey,
- 'hmac' => $hmac,
- ));
- }
- function pay_charge_yeepay($total_money, $charge_id, $title) {
- global $INI, $login_user; if($total_money<=0||!$title) return null;
- require_once( WWW_ROOT . '/order/yeepay/yeepayCommon.php');
- $order_id = 'charge';
- $p0_Cmd = 'Buy';
- $p1_MerId = $INI['yeepay']['mid'];
- $p2_Order = $charge_id;
- $p3_Amt = $total_money;
- $p4_Cur = "CNY";
- $p5_Pid = "ZuituGo-Charge({$total_money})";
- $p6_Pcat = '';
- $p5_Pdesc = "ZuituGo-Charge({$total_money})";
- $p8_Url = $INI['system']['wwwprefix'] . '/order/yeepay/callback.php';
- $p9_SAF = '0';
- $pa_MP = '';
- $pd_FrpId = strval($_REQUEST['pd_FrpId']);
- $pr_NeedResponse = '1';
- $merchantKey = $INI['yeepay']['sec'];
- $hmac = getReqHmacString($p1_MerId,$p2_Order,$p3_Amt,$p4_Cur,$p5_Pid,$p6_Pcat,$p7_Pdesc,$p8_Url,$pa_MP,$pd_FrpId,$pr_NeedResponse,$merchantKey);
- return render('block_pay_yeepay', array(
- 'order_id' => $order_id,
- 'p0_Cmd' => $p0_Cmd,
- 'p1_MerId' => $p1_MerId,
- 'p2_Order' => $p2_Order,
- 'p3_Amt' => $p3_Amt,
- 'p4_Cur' => $p4_Cur,
- 'p5_Pid' => $p5_Pid,
- 'p6_Pcat' => $p6_Pcat,
- 'p7_Pdesc' => $p7_Pdesc,
- 'p8_Url' => $p8_Url,
- 'p9_SAF' => $p9_SAF,
- 'pa_MP' => $pa_MP,
- 'pd_FrpId' => $pd_FrpId,
- 'pr_NeedResponse' => $pr_NeedResponse,
- 'merchantKey' => $merchantKey,
- 'hmac' => $hmac,
- ));
- }
- /* pay util function */
- function billAppendParam($s, $k, $v){
- $joinstring = $s ? '&' : null;
- return $v=='' ? $s : "{$s}{$joinstring}{$k}={$v}";
- }
- /* get orderitem detail*/
- function payOrderDetail($order){
- $checkItem = ZOrder::checkOrderItem($order['gen_id']);
- if($checkItem){
- $orderitems = $checkItem['orderitems'];
- $teams = $checkItem['teams'];
- $i = 1;
- foreach($orderitems as $item){
- $team_id = $item['team_id'];
- if($item['props']) $teams[$team_id]['product'] .= '('.$item['props'].')';
- $pdt_desc .= $i.'?'.$teams[$team_id]['product'].' x '.$item['quantity'].', ';
- $i++;
- }
- return $pdt_desc;
- }
- return false;
- }