Commit 3625786c by 冷斌

update

parent d25ce1fd
...@@ -5,10 +5,13 @@ class Model_User extends PhalApi_Model_NotORM ...@@ -5,10 +5,13 @@ class Model_User extends PhalApi_Model_NotORM
/* 用户全部信息 */ /* 用户全部信息 */
public function getBaseInfo($uid) 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") $info = DI()->notorm->users->select("openid,id,mobile,user_nicename,avatar,avatar_thumb,sex,signature,coin,votes,consumption,votestotal,province,city,birthday")
->where('id=? and user_type="2"', $uid) ->where('id=? and user_type="2"', $uid)
->fetchOne(); ->fetchOne();
if ($info) { if ($info) {
$openid = $info['openid'];
unset($info['openid']);
$info['isPhoneLogin'] = $openid ? 1 : 0;
$info['avatar'] = get_upload_path($info['avatar']); $info['avatar'] = get_upload_path($info['avatar']);
$info['avatar_thumb'] = get_upload_path($info['avatar_thumb']); $info['avatar_thumb'] = get_upload_path($info['avatar_thumb']);
$info['level'] = getLevel($info['consumption']); $info['level'] = getLevel($info['consumption']);
......
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