Changeset 20657


Ignore:
Timestamp:
2011/03/15 23:09:00 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110315135150-uimkasj4fsipbmnz
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/SC_Customer.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Customer.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110315140821-vehv46nqv9lfmfqt
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110315140847-mfho9dg10hs4p6z1
bzr:revno:
3377
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/SC_Customer.php ohkouchi@loop-az.jp-20110315140821-vehv46nqv9lfmfqt
bzr:timestamp:
2011-03-15 23:08:47.911000013 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-15T14:08:47.911000Z
Message:

#913 (購入予定ポイントが表示されるが、加算されない)

  • ポイントはリアルタイムに取得するよう修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Customer.php

    r20562 r20657  
    244244    // パラメータの取得 
    245245    function getValue($keyname) { 
    246         return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ""; 
     246        // ポイントはリアルタイム表示 
     247        if ($keyname == 'point') { 
     248            $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     249            $point = $objQuery->get('point', 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); 
     250            $_SESSION['customer']['point'] = $point; 
     251            return $point; 
     252        } else { 
     253            return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ""; 
     254        } 
    247255    } 
    248256 
Note: See TracChangeset for help on using the changeset viewer.