Ignore:
Timestamp:
2007/02/08 13:54:58 (19 years ago)
Author:
rebelt
Message:

修正です。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/mobile/data/class/SC_Customer.php

    r11405 r11411  
    5050    } 
    5151     
    52     function getCustomerDataFromEmailPass( $pass, $email ) { 
     52    function getCustomerDataFromEmailPass( $pass, $email, $mobile = false ) { 
     53        $sql_mobile = $mobile ? ' OR email_mobile ILIKE ?' : ''; 
     54        $arrValues = array($email); 
     55        if ($mobile) { 
     56            $arrValues[] = $email; 
     57        } 
    5358        // ËÜÅÐÏ¿¤µ¤ì¤¿²ñ°÷¤Î¤ß 
    54         $sql = "SELECT * FROM dtb_customer WHERE email ILIKE ? AND del_flg = 0 AND status = 2"; 
    55         $result = $this->conn->getAll($sql, array($email)); 
     59        $sql = "SELECT * FROM dtb_customer WHERE (email ILIKE ?" . $sql_mobile . ") AND del_flg = 0 AND status = 2"; 
     60        $result = $this->conn->getAll($sql, $arrValues); 
    5661        $data = $result[0]; 
    5762         
Note: See TracChangeset for help on using the changeset viewer.