Commit a8a7d124 authored by chenzq's avatar chenzq

添加等级信息

parent 82bc74dc
......@@ -189,12 +189,12 @@ if (isset($info['openid'])) {
}
$sq = 'SELECT a.level_id,b.icon FROM ' . tablename('longbing_company_user') . ' a LEFT JOIN ' . tablename('longbing_company_member_level') . (' b ON a.level_id = b.level WHERE a.id = ' . $uid);
$sq = 'SELECT a.level_id,b.icon,b.name FROM ' . tablename('longbing_company_user') . ' a LEFT JOIN ' . tablename('longbing_company_member_level') . (' b ON a.level_id = b.level WHERE a.id = ' . $uid);
$a =pdo_fetch($sq);
if($a&&$a['icon']){
$a['icon']=$_W['siteroot'].$a['icon'];
$a['icon']=$_W['siteroot'].'attachment/'.$a['icon'];
}
@file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/data/tpl/icon.txt','x',$a);
return $this->result(0, 'suc', array('user_id' => $uid, 'user' => $user,'inf'=>$a));
}
......
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