ECJiaWiki:Api:user_user_info_api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

 会员信息

接口名称

user_info

请求参数

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

举例如下

RC_Api::api('user', 'user_info', array('user_id' => $row['user_id']));

成功举例如下

CONTENT: Array
(
    [user_id] => 1026
    [email] => jihongfei@ecmoban.com
    [user_name] => keefer
    [password] => 1af4dbbc9e8cc4957822cb93e95b5cb5
    [avatar_img] => 
    [sex] => 1
    [birthday] => 2016-11-08
    [user_money] => -461.54
    [frozen_money] => 0.00
    [pay_points] => 524
    [rank_points] => 524
    [address_id] => 554
    [reg_time] => 1477005855
    [last_login] => 1484672406
    [last_time] => 0000-00-00 00:00:00
    [last_ip] => 180.153.194.137
    [visit_count] => 1
    [user_rank] => 0
    [is_special] => 0
    [ec_salt] => 6052
    [salt] => 0
    [parent_id] => 0
    [flag] => 0
    [alias] => 
    [msn] => 
    [qq] => 
    [office_phone] => 
    [home_phone] => 
    [mobile_phone] => 18265198509
    [is_validated] => 0
    [credit_line] => 0.00
    [passwd_question] => 
    [passwd_answer] => 
    [formated_user_money] => ¥-461.54
    [formated_frozen_money] => ¥0.00
)

失败举例如下

CONTENT: ecjia_error Object
(
    [errors:Royalcms\Component\Error\Error:private] => Array
        (
            [invalid_parameter] => Array
                (
                    [0] => 参数无效
                )

        )

    [error_data:Royalcms\Component\Error\Error:private] => Array
        (
        )

)

注:错误编码