每日自动提交 2026-04-09 18:30
This commit is contained in:
@@ -83,6 +83,7 @@ namespace Assets.MyGame.Scripts.Net
|
||||
dic_API[APIType.Login_SendMobileCode] = "/api/Login/SendMobileCode";
|
||||
dic_API[APIType.Login_LoginWx] = "/api/Login/LoginWx";
|
||||
dic_API[APIType.Login_Login] = "/api/Login/Login";
|
||||
dic_API[APIType.Login_ResetPassWord] = "/api/Login/ResetPassword";
|
||||
|
||||
// ---------------- Notice ----------------
|
||||
dic_API[APIType.Notice_Add] = "/api/Notice/add";
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace Assets.MyGame.Scripts.Net.APIRequest.Objs
|
||||
///真实名字
|
||||
///</summary>
|
||||
public string realName;
|
||||
public string iuDCard;
|
||||
public string iDCard;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录接口请求参数(GET)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ReSetPassWordParam : RequestParamBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户手机号
|
||||
/// </summary>
|
||||
public string mobile;
|
||||
public string password;
|
||||
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string code;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9094696bd37edc840b9e4add45136963
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录接口请求参数(GET)
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class YZMParam : RequestParamBase
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string mobile;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82940f785142caf4b8cc997663920318
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -90,6 +90,26 @@ res =>
|
||||
callback?.Invoke(obj);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 更改密码(Get)
|
||||
/// </summary>
|
||||
public static void ResetPassword(ReSetPassWordParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.Login_ResetPassWord, req, obj =>
|
||||
{
|
||||
callback?.Invoke(obj);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取验证码(Get)
|
||||
/// </summary>
|
||||
public static void YZM(YZMParam req, Action<string> callback)
|
||||
{
|
||||
APIManager.Response<string>(APIType.Login_SendMobileCode, req, obj =>
|
||||
{
|
||||
callback?.Invoke(obj);
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -170,6 +170,8 @@
|
||||
|
||||
/// <summary>用户登录(GET)</summary>
|
||||
Login_Login,
|
||||
/// <summary>用户登录(GET)</summary>
|
||||
Login_ResetPassWord,
|
||||
|
||||
|
||||
// ---------------- Notice ----------------
|
||||
|
||||
Reference in New Issue
Block a user