Commit a1af5d8b by 冷斌

fix bug

parent 29ed3fd5
......@@ -4,7 +4,7 @@ class Model_User extends PhalApi_Model_NotORM {
/* 用户全部信息 */
public function getBaseInfo($uid) {
$info=DI()->notorm->users
->select("id,mobile, user_nicename,avatar,avatar_thumb,sex,signature,coin,votes,consumption,votestotal,province,city,birthday,alipay_pay,wx_pay")
->select("id,mobile,user_pass2, user_nicename,avatar,avatar_thumb,sex,signature,coin,votes,consumption,votestotal,province,city,birthday,alipay_pay,wx_pay")
->where('id=? and user_type="2"',$uid)
->fetchOne();
if($info){
......@@ -15,7 +15,8 @@ class Model_User extends PhalApi_Model_NotORM {
$info['lives']=getLives($uid);
$info['follows']=getFollows($uid);
$info['fans']=getFans($uid);
$info['isTwoPass'] = !empty($info['user_pass2']) ? 1: 0;
unset($info['user_pass2']);
$info['vip']=getUserVip($uid);
$info['liang']=getUserLiang($uid);
......
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