| | |
| | | } |
| | | |
| | | |
| | | |
| | | #region 注册、登录部分 |
| | | /// <summary> |
| | | /// 账号登录-使用密码 |
| | |
| | | /// <summary> |
| | | /// 获取注册验证码 |
| | | /// </summary> |
| | | public ResponsePack GetPhoneRegisterVerCode(string account) |
| | | public ResponsePack GetRegisterVerCode(string account) |
| | | { |
| | | string jsonString = "{" +
|
| | | "\"Account\":" + "\"" + account + "\"" + "," + |
| | |
| | | /// <summary> |
| | | /// 获取登录验证码 |
| | | /// </summary> |
| | | /// <param name="phoneNum">手机号码</param> |
| | | public ResponsePack GetPhoneLoginVerCode(string phoneNum) |
| | | public ResponsePack GetLoginVerCode(string account) |
| | | { |
| | | |
| | | string jsonString = "{" +
|
| | | "\"Account\":" + "\"" + phoneNum + "\"" + "," + |
| | | "\"Account\":" + "\"" + account + "\"" + "," + |
| | | "\"AreaCode\":" + "86" + |
| | | "}"; |
| | | return RequestHttps($"{severAddress}/ZigbeeUsers/LoginSendVerCode", jsonString, false); |
| | |
| | | |
| | | var revertObj = RequestHttps($"{severAddress}/ZigbeeUsers/UpdateHeadImage", requestJson, true); |
| | | return revertObj.StateCode; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更改绑定账户的邮箱或者手机号 |
| | | /// </summary> |
| | | /// <param name="account"></param> |
| | | /// <returns></returns> |
| | | public string BindAccount(string account) |
| | | { |
| | | string jsonString = "{" + "\"Account\":" + "\"" + account + "\"" + "}"; |
| | | var responsePack = RequestHttps($"{severAddress}/ZigbeeUsers/BindAccount", jsonString, true); |
| | | return responsePack.StateCode; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 备份部分 |
| | | /// <summary> |