ECJiaWiki:Api:user_get_user_info_api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

会员信息

接口名称

get_user_info


请求参数

字段名 变量名 必填 类型 示例值 描述
用户ID user_id INT 1 用户ID

举例如下

$get_user_info = RC_Api::api('user', 'get_user_info',1);

成功举例如下

CONTENT: Array
(
    [user_id] => 1
    [email] => timhbw@gmail.com
    [user_name] => ecjia
    [password] => e10adc3949ba59abbe56e057f20f883e
    [avatar_img] => 
    [sex] => 0
    [birthday] => 1000-01-01
    [user_money] => 0.00
    [frozen_money] => 0.00
    [pay_points] => 20
    [rank_points] => 20
    [address_id] => 0
    [reg_time] => 1541037149
    [last_login] => 0
    [last_time] => 2017-01-01 00:00:00
    [last_ip] => 
    [visit_count] => 0
    [user_rank] => 5
    [is_special] => 0
    [ec_salt] => 
    [salt] => 0
    [parent_id] => 0
    [flag] => 0
    [alias] => 
    [msn] => 
    [qq] => 
    [office_phone] => 
    [home_phone] => 
    [mobile_phone] => 15987091988
    [is_validated] => 0
    [credit_line] => 0.00
    [passwd_question] => 
    [passwd_answer] => 
    [formated_user_money] => ¥0.00
    [formated_frozen_money] => ¥0.00
)

失败举例如下

CONTENT: NULL

注:错误编码