Commit fb8be01c by 冷斌

个人中心 - vip

parent 6025f4e1
...@@ -141,6 +141,8 @@ class UserAction extends CommonAction ...@@ -141,6 +141,8 @@ 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'); $vipInfo = M('user_vip')->where(['id'=>$userVip['vip_type']])->getField('title');
$vip = $vipInfo['title']; $vip = $vipInfo['title'];
......
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