Ignore:
Timestamp:
2007/02/25 03:39:19 (16 years ago)
Author:
rebelt
Message:

修正です。

File:
1 edited

Legend:

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

    r11415 r11457  
    133133 
    134134        $this->customer_data['mobile_phone_id'] = $_SESSION['mobile']['phone_id']; 
     135    } 
     136 
     137    /** 
     138     * email ¤«¤é email_mobile ¤Ø·ÈÂӤΥ᡼¥ë¥¢¥É¥ì¥¹¤ò¥³¥Ô¡¼¤¹¤ë¡£ 
     139     * 
     140     * @return void 
     141     */ 
     142    function updateEmailMobile() { 
     143        // ¤¹¤Ç¤Ë email_mobile ¤ËÃͤ¬Æþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï²¿¤â¤·¤Ê¤¤¡£ 
     144        if ($this->customer_data['email_mobile'] != '') { 
     145            return; 
     146        } 
     147 
     148        // email ¤¬·ÈÂӤΥ᡼¥ë¥¢¥É¥ì¥¹¤Ç¤Ï¤Ê¤¤¾ì¹ç¤Ï²¿¤â¤·¤Ê¤¤¡£ 
     149        if (!gfIsMobileMailAddress($this->customer_data['email'])) { 
     150            return; 
     151        } 
     152 
     153        // email ¤«¤é email_mobile ¤Ø¥³¥Ô¡¼¤¹¤ë¡£ 
     154        $objQuery = new SC_Query; 
     155        $sqlval = array('email_mobile' => $this->customer_data['email']); 
     156        $where = 'customer_id = ? AND del_flg = 0 AND status = 2'; 
     157        $objQuery->update('dtb_customer', $sqlval, $where, array($this->customer_data['customer_id'])); 
     158 
     159        $this->customer_data['email_mobile'] = $this->customer_data['email']; 
    135160    } 
    136161     
Note: See TracChangeset for help on using the changeset viewer.