Ignore:
Timestamp:
2008/01/11 12:54:22 (18 years ago)
Author:
satou
Message:

#160 会員登録時付与ポイントが反映されない不具合を改修

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/html/regist/index.php

    r11588 r16972  
    4545 
    4646    } else { 
    47         //$objPage->tpl_mainpage = 'regist/complete.tpl'; 
    48         //$objPage->tpl_title = ' ²ñ°÷ÅÐÏ¿(´°Î»¥Ú¡¼¥¸)'; 
    49         $registSecretKey = lfRegistData($_GET);         //Ëܲñ°÷ÅÐÏ¿¡Ê¥Õ¥é¥°Êѹ¹¡Ë 
    50         lfSendRegistMail($registSecretKey);             //Ëܲñ°÷ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿® 
    51  
     47        //Ëܲñ°÷ÅÐÏ¿¡Ê¥Õ¥é¥°Êѹ¹¡Ë 
     48        $registSecretKey = lfRegistData($_GET); 
     49        //Ëܲñ°÷ÅÐÏ¿´°Î»¥á¡¼¥ëÁ÷¿® 
     50        lfSendRegistMail($registSecretKey); 
     51        // ²ñ°÷ÅÐÏ¿¥Ý¥¤¥ó¥ÈÉÕÍ¿ 
     52        sfSetWelcomePoint($registSecretKey, $CONF); 
    5253        // ¥í¥°¥¤¥óºÑ¤ß¤Î¾õÂ֤ˤ¹¤ë¡£ 
    5354        $email = $objQuery->get("dtb_customer", "email", "secret_key = ?", array($registSecretKey)); 
    5455        $objCustomer->setLogin($email); 
     56         
    5557        header("Location: ./complete.php$etc_val"); 
    5658        exit; 
     
    9092    $objQuery = new SC_Query(); 
    9193    $where = "secret_key = ? AND status = 1"; 
    92      
    93     $arrRet = $objQuery->select("point", "dtb_customer", $where, array($array["id"])); 
    94     // ²ñ°÷ÅÐÏ¿»þ¤Î²Ã»»¥Ý¥¤¥ó¥È(¹ØÆþ»þ²ñ°÷ÅÐÏ¿¤Î¾ì¹ç¤Ï¡¢¥Ý¥¤¥ó¥È²Ã»»¡Ë 
    95     $arrRegist['point'] = $arrRet[0]['point'] + addslashes($arrInfo['welcome_point']); 
    96      
    9794    $objQuery->update("dtb_customer", $arrRegist, $where, array($array["id"])); 
    98  
    99     /* ¹ØÆþ»þ¤Î¼«Æ°²ñ°÷ÅÐÏ¿¤Ï¹Ô¤ï¤Ê¤¤¤¿¤áDEL 
    100     // ¹ØÆþ»þÅÐÏ¿¤Î¾ì¹ç¡¢¤½¤Î²ó¤Î¹ØÆþ¤ò²ñ°÷¹ØÆþ¤È¤ß¤Ê¤¹¡£ 
    101     // ²ñ°÷¾ðÊó¤ÎÆÉ¤ß¹þ¤ß 
    102     $where1 = "secret_key = ? AND status = 2"; 
    103     $customer = $objQuery->select("*", "dtb_customer", $where1, array($secret)); 
    104     // ½é²ó¹ØÆþ¾ðÊó¤ÎÆÉ¤ß¹þ¤ß 
    105     $order_temp_id = $objQuery->get("dtb_order_temp", "order_temp_id"); 
    106     // ¹ØÆþ¾ðÊó¤Î¹¹¿· 
    107     if ($order_temp_id != null) { 
    108         $arrCustomer['customer_id'] = $customer[0]['customer_id']; 
    109         $where3 = "order_temp_id = ?"; 
    110         $objQuery->update("dtb_order_temp", $arrCustomer, $where3, array($order_temp_id)); 
    111         $objQuery->update("dtb_order", $arrCustomer, $where3, array($order_temp_id)); 
    112     } 
    113     */ 
    11495 
    11596    $sql = "SELECT mailmaga_flg FROM dtb_customer WHERE email = ?"; 
Note: See TracChangeset for help on using the changeset viewer.