用户注册
语法格式:
用户注册函数:
UserRegister(string username,string password,string email,string address,string openid);
参数一(必填): username 用户名
参数二(必填): password 密码
参数三(选填): email 邮箱 选填的均为""
参数四(选填): address 地址
参数五(选填):openid 外链登录的openid,如果为QQ登录或者微博登录需要填写
返回值:注册成功,返回用户信息,包含用户信息object,一个空数组,一个guid,结构如下:
[
{
"UserName":"usestudio32",
"UserEmail":"null",
"RegisterDate":"/Date(1303282537240)/",
"RegisterIP":"127.0.0.1",
"lastLoginDate":"/Date(1477624953087)/",
"LoginIP":"10.1.16.100",
"LoginLanIP":undefined,
"LoginAddress":"中国广东深圳",
"loginCoorZ":undefined,
"loginCoorY":undefined,
"LoginCoorX":undefined,
"LoginComputer":"WinNT",
"LoginBrowser":"Chrome49.0",
"UserImageHead":"yousi.png",
"UserNickName":"usestudio32",
"UserRemarks":"",
"UserTelephoneNumber":"",
"UserIDCard":"null",
"UserThumbnailImageHead":"yousi.png",
"IsLogin":true,
"LoginDate":"/Date(1316079196347)/",
"UserIndividualitysignature":"",
"UserSex":false,
"UserAddress":undefined,
"AllOnlineTime":undefined,
"LoginComputerType":undefined,
"UserClientWidth":undefined,
"UserClientHeight":undefined,
"IsSelf":false,
"UserBackGroundImage":"http://www.1473.cn/img/usestudiobackgroudnimage/cloud.jpg/S",
"UserBackGroundMusic":undefined,
"UserDesktopImg":undefined,
"IsEmailIdentification":false,
"IsTelephoneIdentication":false,
"IsUseStudioMember":false,
"UserId":"889b73a0-f143-4040-945e-ad9248c74951",
"UserPassword":"4F0B40A5E4379513",
"TrueName":"",
"TrueNameVerify":undefined,
"VirtualCurrency":0,
"TrueCurrency":0,
"Country":"其它",
"Province":"其它",
"Birthday":"/Date(1444579200000)/",
"City":"其它",
"SecurityAnswer":undefined,
"SecurityProblem":undefined,
"IsAllowAccess":0,
"IsShielding":0,
"UserDiskSpace":10000,
"UserType":undefined,
"UserStamp":"1303282537"
},
[],
"6b84b342-57f4-4179-900e-d17944a29bf8"
]
返回值:
"false" 注册失败,返回字符串"false"。
"notregister" 注册失败,账号已经存在,返回字符串"notregister"。
前端javascript调用数据库存储过程示例(可在编辑区域修改参数):
说明:以下参数"张三"用户名必须修改成其他名称才能注册成功
U.A.Request(US.AUTH, ["UserRegister","张三", "123456", "", "", ""],AsynFun,[]);
运行结果展示区域:
使用在线ide查看示例:
说明:以下参数"张三"用户名必须修改成其他名称才能注册成功
U.A.Request(US.AUTH, ["UserRegister"",张三", "123456", "", "", ""], AsynFun, []); //调用后台注册函数 ;