<?php

return ["title" => "登录/注册/找回密码", "item" => ["loginAPI" => ["title" => "API登录", "desc" => "获取支持的登录方式中有API登录方式才可用该接口。", "url" => "/v1/login_api", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "account", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机号或邮箱", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "API密钥", "example" => "", "child" => []]], "return" => [["name" => "jwt", "type" => "string", "require" => "", "max" => "-", "desc" => "登录成功，返回登录凭证", "example" => ""]]], "loginPage" => ["title" => "获取支持的登录方式", "desc" => "获取支持的登录方式，不支持的登录方式则不会返回参数。如果在返回的登录方式中参数captcha的值是1，需要去请求图像验证码接口", "url" => "/v1/login", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "login_email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱密码登录", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "login_phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机密码登录", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "login_phone_captcha", "type" => "array", "require" => "", "max" => "-", "desc" => "手机验证码登录", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "login_id", "type" => "array", "require" => "", "max" => "-", "desc" => "ID密码登录", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "sms_country", "type" => "array", "require" => "", "max" => "-", "desc" => "允许的手机区号", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "区号", "example" => ""], ["name" => "link", "type" => "string", "require" => "", "max" => "-", "desc" => "区号名称", "example" => ""]]], ["name" => "oauth", "type" => "array", "require" => "", "max" => "-", "desc" => "三方登录，专业版才会有该数据", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "名称", "example" => ""], ["name" => "url", "type" => "string", "require" => "", "max" => "-", "desc" => "授权登录跳转地址", "example" => ""], ["name" => "img", "type" => "string", "require" => "", "max" => "-", "desc" => "图片", "example" => ""]]]]], "login" => ["title" => "登录", "desc" => "4种登录请求方式，所使用的登录方式必须是在获取的登录方式中有才有效", "url" => "/v1/login", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机和密码登录", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "手机区号，不传该参数默认是+86", "example" => "", "child" => []], ["name" => "phone", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机号", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []]]], ["name" => "phone_code", "type" => "array", "require" => "", "max" => "-", "desc" => "手机和验证码登录", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "手机区号，不传该参数默认是+86", "example" => "", "child" => []], ["name" => "phone", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机号", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "code", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机验证码", "example" => "", "child" => []]]], ["name" => "email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱和密码登录", "example" => "", "child" => [["name" => "email", "type" => "string", "require" => "必填", "max" => "-", "desc" => "邮箱", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []]]], ["name" => "id", "type" => "array", "require" => "", "max" => "-", "desc" => "客户id和密码登录", "example" => "", "child" => [["name" => "id", "type" => "string", "require" => "必填", "max" => "-", "desc" => "客户的id", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []]]]], "return" => [["name" => "jwt", "type" => "string", "require" => "", "max" => "-", "desc" => "登录成功，返回登录凭证", "example" => ""], ["name" => "second_verify", "type" => "array", "require" => "", "max" => "-", "desc" => "登录失败，需要二次验证的登录失败，会返回二次验证的数据", "example" => "", "child" => [["name" => "type", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => ""], ["name" => "name_zh", "type" => "string", "require" => "", "max" => "-", "desc" => "类型名称", "example" => ""], ["name" => "account", "type" => "string", "require" => "", "max" => "-", "desc" => "验证账户信息", "example" => ""]]]]], "registerPage" => ["title" => "获取支持的注册方式", "desc" => "获取支持的注册方式，不支持的注册录方式则不会返回参数。如果在返回的注册方式中参数captcha的值是1，需要去请求图像验证码接口", "url" => "/v1/register", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "register_email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱注册", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""], ["name" => "code", "type" => "int", "require" => "", "max" => "-", "desc" => "是否需要发送邮箱验证码注册，1开启,0关闭", "example" => ""]]], ["name" => "register_phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机注册", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""], ["name" => "code", "type" => "int", "require" => "", "max" => "-", "desc" => "是否需要发送短信验证码注册，1开启，短信注册必须发验证码", "example" => ""]]], ["name" => "sms_country", "type" => "array", "require" => "", "max" => "-", "desc" => "允许的手机区号", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "区号", "example" => ""], ["name" => "link", "type" => "string", "require" => "", "max" => "-", "desc" => "区号名称", "example" => ""]]], ["name" => "sale", "type" => "array", "require" => "", "max" => "-", "desc" => "销售选择，后台设置了注册时选择销售才会输出该参数", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "销售人员ID", "example" => ""], ["name" => "user_nickname", "type" => "string", "require" => "", "max" => "-", "desc" => "销售人员名称", "example" => ""], ["name" => "user_email", "type" => "string", "require" => "", "max" => "-", "desc" => "销售人员邮箱", "example" => ""]]], ["name" => "custom_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "客户自定义字段，后台设置了注册时自定义字段才会输出该参数", "example" => "", "child" => [["name" => "id", "type" => "int", "require" => "", "max" => "-", "desc" => "销售人员ID", "example" => ""], ["name" => "fieldname", "type" => "string", "require" => "", "max" => "-", "desc" => "字段名称", "example" => ""], ["name" => "description", "type" => "string", "require" => "", "max" => "-", "desc" => "描述", "example" => ""], ["name" => "fieldtype", "type" => "string", "require" => "", "max" => "-", "desc" => "类型", "example" => ""], ["name" => "fieldoptions", "type" => "string", "require" => "只有是下拉类型时，才需要用到此参数", "max" => "-", "desc" => "下拉类型选项", "example" => ""], ["name" => "regexpr", "type" => "string", "require" => "", "max" => "-", "desc" => "正则表达式验证字符串", "example" => ""], ["name" => "required", "type" => "string", "require" => "", "max" => "-", "desc" => "显示排序", "example" => ""]]], ["name" => "system_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "注册时选填字段，开启了才会输出此参数", "example" => "", "child" => [["name" => "name", "type" => "string", "require" => "", "max" => "-", "desc" => "字段名", "example" => ""], ["name" => "require", "type" => "string", "require" => "值是1时必填", "max" => "-", "desc" => "", "example" => ""]]]]], "register" => ["title" => "注册", "desc" => "所使用的注册方式必须是在获取的注册方式中有才有效", "url" => "/v1/register", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机注册", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机区号，不传该参数默认是+86", "example" => "", "child" => []], ["name" => "phone", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机号", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "code", "type" => "string", "require" => "必填", "max" => "-", "desc" => "短信验证码", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []], ["name" => "sale_id", "type" => "int", "require" => "", "max" => "-", "desc" => "销售id", "example" => ""], ["name" => "custom_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "客户自定义字段,示例中的22是字段ID", "example" => "[\"22\"=>\"百度搜索引擎\"]"], ["name" => "system_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "注册时字段，在获取的注册方式中如果该参数是必填，必须要提交", "example" => "[\"qq\"=>\"3443551\",\"username\"=>\"陈诚\"]"]]], ["name" => "email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱注册", "example" => "", "child" => [["name" => "email", "type" => "string", "require" => "必填", "max" => "-", "desc" => "邮箱", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "code", "type" => "string", "require" => "", "max" => "-", "desc" => "邮箱验证码", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []], ["name" => "sale_id", "type" => "int", "require" => "", "max" => "-", "desc" => "销售id", "example" => ""], ["name" => "custom_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "客户自定义字段,示例中的22是字段ID", "example" => "[\"22\"=>\"百度搜索引擎\"]"], ["name" => "system_fields", "type" => "array", "require" => "", "max" => "-", "desc" => "注册时字段，在获取的注册方式中如果该参数是必填，必须要提交", "example" => "[\"qq\"=>\"3443551\",\"username\"=>\"陈诚\"]"]]]], "return" => [["name" => "jwt", "type" => "string", "require" => "", "max" => "-", "desc" => "注册成功，返回登录凭证", "example" => ""]]], "pwresetPage" => ["title" => "获取支持的找回密码方式", "desc" => "获取支持的找回密码方式，不支持的则不会返回参数。如果在返回中参数captcha的值是1，需要去请求图像验证码接口", "url" => "/v1/pwreset", "method" => "GET", "auth" => "智简魔方", "version" => "v1", "return" => [["name" => "pwreset_email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱找回密码", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "pwreset_phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机找回密码", "example" => "", "child" => [["name" => "captcha", "type" => "int", "require" => "", "max" => "-", "desc" => "图形验证码，1开启,0关闭", "example" => ""]]], ["name" => "sms_country", "type" => "array", "require" => "", "max" => "-", "desc" => "允许的手机区号", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "区号", "example" => ""], ["name" => "link", "type" => "string", "require" => "", "max" => "-", "desc" => "区号名称", "example" => ""]]]]], "pwreset" => ["title" => "找回密码", "desc" => "", "url" => "/v1/pwreset", "method" => "POST", "auth" => "智简魔方", "version" => "v1", "param" => [["name" => "phone", "type" => "array", "require" => "", "max" => "-", "desc" => "手机找回密码", "example" => "", "child" => [["name" => "phone_code", "type" => "string", "require" => "", "max" => "-", "desc" => "手机区号，不传该参数默认是+86", "example" => "", "child" => []], ["name" => "phone", "type" => "string", "require" => "必填", "max" => "-", "desc" => "手机号", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "code", "type" => "string", "require" => "必填", "max" => "-", "desc" => "短信验证码", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []]]], ["name" => "email", "type" => "array", "require" => "", "max" => "-", "desc" => "邮箱找回密码", "example" => "", "child" => [["name" => "email", "type" => "string", "require" => "必填", "max" => "-", "desc" => "邮箱", "example" => "", "child" => []], ["name" => "captcha", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码", "example" => "", "child" => []], ["name" => "idtoken", "type" => "string", "require" => "", "max" => "-", "desc" => "图形验证码ID", "example" => "", "child" => []], ["name" => "code", "type" => "string", "require" => "必填", "max" => "-", "desc" => "邮箱验证码", "example" => "", "child" => []], ["name" => "password", "type" => "string", "require" => "必填", "max" => "-", "desc" => "密码", "example" => "", "child" => []]]]], "return" => [["name" => "jwt", "type" => "string", "require" => "", "max" => "-", "desc" => "重置密码成功，返回登录凭证", "example" => ""]]]]];