Commit 39b7bb79 by 冷斌

个人中心 - vip

parent fb8be01c
...@@ -141,13 +141,9 @@ class UserAction extends CommonAction ...@@ -141,13 +141,9 @@ class UserAction extends CommonAction
// vip // vip
$vip = ''; $vip = '';
$userVip = M('zy_learncoin')->where(['uid'=>$uid])->getField('vip_type'); $userVip = M('zy_learncoin')->where(['uid'=>$uid])->getField('vip_type');
var_dump($userVip, $uid);
die;
if (!empty($userVip['vip_type'])) { if (!empty($userVip['vip_type'])) {
$vipInfo = M('user_vip')->where(['id'=>$userVip['vip_type']])->getField('title'); $vip = M('user_vip')->where(['id'=>$userVip])->getField('title');
$vip = $vipInfo['title'];
} }
$this->assign("coupon_count", $coupon['count']); $this->assign("coupon_count", $coupon['count']);
$this->assign("invite_url", $invite_url); $this->assign("invite_url", $invite_url);
$this->assign('video_data', $video_data); $this->assign('video_data', $video_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment