Authored by yangyang

增加了会员等级控制器

1 <?php 1 <?php
2 2
3 use Action\AbstractAction; 3 use Action\AbstractAction;
  4 +use home\GradeModel;
4 use Plugin\Helpers; 5 use Plugin\Helpers;
5 6
6 /** 7 /**
@@ -132,4 +133,28 @@ class HomeController extends AbstractAction @@ -132,4 +133,28 @@ class HomeController extends AbstractAction
132 133
133 } 134 }
134 135
  136 + /**
  137 + * 会员等级展示页
  138 + */
  139 + public function gradeAction(){
  140 + $gender = Helpers::getGenderByCookie();
  141 + $channel = Helpers::getChannelByCookie();
  142 + $uid = $this -> getUid();
  143 + $uid = '10267443';
  144 + $data = GradeModel::getGrade($gender,$channel,$uid);
  145 + //print_r($data);
  146 + //$this -> _view -> display('index',$data);
  147 + }
  148 + /*
  149 + *会员特权查看页
  150 + */
  151 + public function preferentialAction(){
  152 + $channel = Helpers::getChannelByCookie();
  153 + $uid = $this -> getUid();
  154 +
  155 + $data = GradeModel::getPreferential($channel,$uid);
  156 + print_r($data);
  157 + //$this -> _view -> display('index',$data);
  158 + }
  159 +
135 } 160 }