每日自动提交 2026-04-14 18:30

This commit is contained in:
2026-04-14 18:30:34 +08:00
parent bedd7c2096
commit ee94087bc2
18 changed files with 1051 additions and 221 deletions
+10
View File
@@ -126,6 +126,16 @@ namespace Assets.MyGame.Scripts.Net
dic_API[APIType.User_ReadEmailMore] = "/api/User/ReadEmailMore";
dic_API[APIType.User_GetNoReadCount] = "/api/User/GetNoReadCount";
dic_API[APIType.User_GetEmailByPage] = "/api/User/GetEmailByPage";
// ---------------- Customer ----------------
dic_API[APIType.Customer_Start] = "/customerapi/Customer/start";
dic_API[APIType.Customer_Message] = "/customerapi/Customer/message";
dic_API[APIType.Customer_Messages] = "/customerapi/Customer/messages/{conversationId}";
dic_API[APIType.Customer_Conversations] = "/customerapi/Customer/conversations";
dic_API[APIType.Customer_End] = "/customerapi/Customer/end";
dic_API[APIType.Customer_Online] = "/customerapi/Customer/online";
dic_API[APIType.Customer_Status] = "/customerapi/Customer/status";
dic_API[APIType.Customer_ChatLog] = "/customerapi/Customer/chatlog/{conversationId}";
}
// ---------------- GET ----------------
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIRequest.Objs
{
/// <summary>
/// 发起会话请求对象(POST)
/// </summary>
public class StartConversationObj : RequestObjBase
{
/// <summary>
/// 用户ID
/// </summary>
public string userId;
/// <summary>
/// 用户名称
/// </summary>
public string userName;
}
/// <summary>
/// 发送消息请求对象(POST)
/// </summary>
public class SendMessageObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
/// <summary>
/// 发送者类型(1:用户 2:客服)
/// </summary>
public int senderType;
/// <summary>
/// 发送者ID
/// </summary>
public string senderId;
/// <summary>
/// 发送者名称
/// </summary>
public string senderName;
/// <summary>
/// 发送者头像
/// </summary>
public string senderAvatar;
/// <summary>
/// 内容类型(1:文字 2:图片)
/// </summary>
public int contentType;
/// <summary>
/// 消息内容(文字内容或图片URL)
/// </summary>
public string content;
}
/// <summary>
/// 结束会话请求对象(POST)
/// </summary>
public class EndConversationObj : RequestObjBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
}
/// <summary>
/// 更新客服状态请求对象(POST)
/// </summary>
public class UpdateCustomerStatusObj : RequestObjBase
{
/// <summary>
/// 客服用户ID
/// </summary>
public string userId;
/// <summary>
/// 状态(0:离线 1:在线)
/// </summary>
public int status;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 068e63fe851e0524a98e54d4246c6541
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIRequest.Params
{
/// <summary>
/// 获取会话列表参数(GET)
/// </summary>
[Serializable]
public class GetConversationsParam : RequestParamBase
{
/// <summary>
/// 客服ID(可选)
/// </summary>
public string customerId;
}
/// <summary>
/// 获取消息列表参数(GET)
/// </summary>
[Serializable]
public class GetMessagesParam : RequestParamBase
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2d88d23486653804688ff33c51c1dbb3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,125 @@
using Assets.MyGame.Scripts.Net.API;
using Assets.MyGame.Scripts.Net.APIRequest.Objs;
using Assets.MyGame.Scripts.Net.APIRequest.Params;
using Assets.MyGame.Scripts.Net.APIResponses.Customer_SubClass;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
namespace Assets.MyGame.Scripts.Net
{
public static partial class APIRequestList
{
#region Customer
/// <summary>
/// 发起会话(POST)
/// 参数:userId、userName
/// 返回:ConversationInfo(会话信息)
/// </summary>
public static void StartConversation(StartConversationObj req, Action<ConversationInfo> callback)
{
APIManager.Response<ConversationInfo>(APIType.Customer_Start, req, callback);
}
/// <summary>
/// 发送消息(POST)
/// 参数:conversationId、senderType、senderId、senderName、senderAvatar、contentType、content
/// 返回:CustomerMessageInfo(消息信息)
/// </summary>
public static void SendMessage(SendMessageObj req, Action<CustomerMessageInfo> callback)
{
APIManager.Response<CustomerMessageInfo>(APIType.Customer_Message, req, callback);
}
/// <summary>
/// 获取消息列表(GET)
/// 参数:conversationId
/// 返回:List<CustomerMessageInfo>(消息列表)
/// </summary>
public static void GetMessages(string conversationId, Action<List<CustomerMessageInfo>> callback)
{
APIManager.Response<List<CustomerMessageInfo>>(APIType.Customer_Messages, new GetMessagesParam
{
conversationId = conversationId
}, callback);
}
/// <summary>
/// 获取会话列表(GET)
/// 参数:customerId(可选)
/// 返回:List<ConversationInfo>(会话列表)
/// </summary>
public static void GetConversations(Action<List<ConversationInfo>> callback)
{
APIManager.Response<List<ConversationInfo>>(APIType.Customer_Conversations, callback);
}
/// <summary>
/// 获取会话列表(GET,带客服ID筛选)
/// 参数:customerId
/// 返回:List<ConversationInfo>(会话列表)
/// </summary>
public static void GetConversations(string customerId, Action<List<ConversationInfo>> callback)
{
APIManager.Response<List<ConversationInfo>>(APIType.Customer_Conversations, new GetConversationsParam
{
customerId = customerId
}, callback);
}
/// <summary>
/// 结束会话(POST)
/// 参数:conversationId
/// 返回:string(结果提示)
/// </summary>
public static void EndConversation(EndConversationObj req, Action<JObject> callback)
{
APIManager.Response<JObject>(APIType.Customer_End, req, callback);
}
/// <summary>
/// 获取在线客服列表(GET)
/// 返回:List<CustomerOnlineInfo>(在线客服列表)
/// </summary>
public static void GetOnlineCustomers(Action<List<CustomerOnlineInfo>> callback)
{
APIManager.Response<List<CustomerOnlineInfo>>(APIType.Customer_Online, callback);
}
/// <summary>
/// 更新客服状态(POST)
/// 参数:userId、status(0:离线 1:在线)
/// 返回:string(结果提示)
/// </summary>
public static void UpdateCustomerStatus(UpdateCustomerStatusObj req, Action<JObject> callback)
{
APIManager.Response<JObject>(APIType.Customer_Status, req, callback);
}
/// <summary>
/// 获取聊天记录(GET)
/// 参数:conversationId
/// 返回:List<CustomerMessageInfo>(聊天记录列表)
/// </summary>
public static void GetChatLog(string conversationId, Action<List<CustomerMessageInfo>> callback)
{
APIManager.Response<List<CustomerMessageInfo>>(APIType.Customer_ChatLog, new GetMessagesParam
{
conversationId = conversationId
}, callback);
}
/// <summary>
/// 上传客服图片(POST,multipart/form-data)
/// 参数:file(文件二进制)
/// 返回:string(图片URL)
/// </summary>
public static void UploadCustomerImage(string filePath, Action<JObject> callback)
{
APIManager.Response<JObject>(APIType.ImageUpload_Upload, callback);
}
#endregion
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3e45b4c1d33670b4390ab6ebe49f39b6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 22daf7fc589d73841957277b9fc22653
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,188 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIResponses.Customer_SubClass
{
/// <summary>
/// 会话信息
/// </summary>
[Serializable]
public class ConversationInfo
{
/// <summary>
/// 会话ID
/// </summary>
public string id;
/// <summary>
/// 用户ID
/// </summary>
public string userId;
/// <summary>
/// 用户昵称
/// </summary>
public string userName;
/// <summary>
/// 客服ID
/// </summary>
public string customerId;
/// <summary>
/// 客服昵称
/// </summary>
public string customerName;
/// <summary>
/// 会话状态
/// </summary>
public int status;
/// <summary>
/// 创建时间
/// </summary>
public string createTime;
}
/// <summary>
/// 消息信息
/// </summary>
[Serializable]
public class CustomerMessageInfo
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
/// <summary>
/// 发送者类型(1:用户 2:客服)
/// </summary>
public int senderType;
/// <summary>
/// 发送者ID
/// </summary>
public string senderId;
/// <summary>
/// 发送者昵称
/// </summary>
public string senderName;
/// <summary>
/// 发送者头像
/// </summary>
public string senderAvatar;
/// <summary>
/// 内容类型(1:文字 2:图片)
/// </summary>
public int contentType;
/// <summary>
/// 消息内容
/// </summary>
public string content;
/// <summary>
/// 创建时间
/// </summary>
public string createTime;
}
/// <summary>
/// 在线客服信息
/// </summary>
[Serializable]
public class CustomerOnlineInfo
{
/// <summary>
/// 客服用户ID
/// </summary>
public string userId;
/// <summary>
/// 客服名称
/// </summary>
public string userName;
/// <summary>
/// 客服头像
/// </summary>
public string avatar;
/// <summary>
/// 状态(0:离线 1:在线)
/// </summary>
public int status;
}
/// <summary>
/// 发起会话结果(WebSocket 回调)
/// </summary>
[Serializable]
public class StartConversationResult
{
/// <summary>
/// 是否成功
/// </summary>
public bool isOk;
/// <summary>
/// 提示信息
/// </summary>
public string msg;
/// <summary>
/// 会话信息
/// </summary>
public ConversationInfo conversation;
}
/// <summary>
/// 新会话通知(WebSocket 回调,客服端)
/// </summary>
[Serializable]
public class NewConversationNotice
{
/// <summary>
/// 会话ID
/// </summary>
public string conversationId;
/// <summary>
/// 客服ID
/// </summary>
public string customerId;
/// <summary>
/// 客服昵称
/// </summary>
public string customerName;
/// <summary>
/// 用户ID
/// </summary>
public string userId;
/// <summary>
/// 用户昵称
/// </summary>
public string userName;
/// <summary>
/// 会话状态
/// </summary>
public int status;
/// <summary>
/// 创建时间
/// </summary>
public string createTime;
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cf22438ff743a8849bf5a34f266d8b89
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.APIResponses.Enum
{
/// <summary>
/// 客服消息内容类型枚举
/// </summary>
public enum CustomerContentTypeEnum
{
文字=1,
图片=2
}
/// <summary>
/// 客服发送者类型枚举
/// </summary>
public enum CustomerSenderTypeEnum
{
用户=1,
客服=2
}
/// <summary>
/// 客服状态枚举
/// </summary>
public enum CustomerStatusEnum
{
离线=0,
在线=1
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f77543a314d6007428bf28ab4236bcd3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+26
View File
@@ -270,5 +270,31 @@
/// <summary>获取邮件列表(POST)</summary>
User_GetEmailByPage,
// ---------------- Customer ----------------
/// <summary>发起会话(POST)</summary>
Customer_Start,
/// <summary>发送消息(POST)</summary>
Customer_Message,
/// <summary>获取消息列表(GET)</summary>
Customer_Messages,
/// <summary>获取会话列表(GET)</summary>
Customer_Conversations,
/// <summary>结束会话(POST)</summary>
Customer_End,
/// <summary>获取在线客服列表(GET)</summary>
Customer_Online,
/// <summary>更新客服状态(POST)</summary>
Customer_Status,
/// <summary>获取聊天记录(GET)</summary>
Customer_ChatLog,
}
}
+278 -37
View File
@@ -11,6 +11,7 @@ GameObject:
- component: {fileID: 8696377502892378563}
- component: {fileID: 4144480183065910834}
- component: {fileID: 2813318877703010542}
- component: {fileID: 908079249264142059}
m_Layer: 0
m_Name: "\u56FE\u5C42 1"
m_TagString: Untagged
@@ -85,6 +86,19 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &908079249264142059
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 79262853638658620}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2fafe2cfe61f6974895a912c3755e8f1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AllowSwitchOff: 0
--- !u!1 &92832868174195349
GameObject:
m_ObjectHideFlags: 0
@@ -760,6 +774,81 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3500062041107021964
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7470759479811999074}
- component: {fileID: 7033250078061638705}
- component: {fileID: 3114912973091134536}
m_Layer: 0
m_Name: blue
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7470759479811999074
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3500062041107021964}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 199172646652219513}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 368, y: 82}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7033250078061638705
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3500062041107021964}
m_CullTransparentMesh: 1
--- !u!114 &3114912973091134536
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3500062041107021964}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d48b549febaa4194fb7f651e21ae8721, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3649013945571076619
GameObject:
m_ObjectHideFlags: 0
@@ -1178,6 +1267,7 @@ GameObject:
- component: {fileID: 3127466166630518554}
- component: {fileID: 8053061106341327378}
- component: {fileID: 6442433320810787472}
- component: {fileID: 867493537761666578}
m_Layer: 0
m_Name: zsbk_tab_1_1
m_TagString: Untagged
@@ -1244,6 +1334,66 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &867493537761666578
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5586405125720703616}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 6442433320810787472}
toggleTransition: 1
graphic: {fileID: 792993846390060201}
m_Group: {fileID: 908079249264142059}
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 6517313830748326118}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName: SetActive
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_IsOn: 0
--- !u!1 &5996832527140282313
GameObject:
m_ObjectHideFlags: 0
@@ -1254,14 +1404,13 @@ GameObject:
m_Component:
- component: {fileID: 199172646652219513}
- component: {fileID: 2285380866168456162}
- component: {fileID: 1043766087510247383}
m_Layer: 0
m_Name: kefu
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &199172646652219513
RectTransform:
m_ObjectHideFlags: 0
@@ -1274,6 +1423,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7470759479811999074}
- {fileID: 3511234284133653061}
- {fileID: 751894749544625442}
- {fileID: 8912525273000014972}
@@ -1295,36 +1445,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5996832527140282313}
m_CullTransparentMesh: 1
--- !u!114 &1043766087510247383
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5996832527140282313}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d48b549febaa4194fb7f651e21ae8721, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &6412846483119406888
GameObject:
m_ObjectHideFlags: 0
@@ -1654,6 +1774,7 @@ GameObject:
- component: {fileID: 7523322505792296813}
- component: {fileID: 2963548883020376645}
- component: {fileID: 5152449960383681170}
- component: {fileID: 8779605733858429284}
m_Layer: 0
m_Name: zsbk_tab_1
m_TagString: Untagged
@@ -1720,6 +1841,66 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &8779605733858429284
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6769085429134515107}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 5152449960383681170}
toggleTransition: 1
graphic: {fileID: 5598271075492067753}
m_Group: {fileID: 908079249264142059}
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 8877947529159609125}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName: SetActive
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_IsOn: 0
--- !u!1 &6870553855238895950
GameObject:
m_ObjectHideFlags: 0
@@ -2357,10 +2538,9 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
btn_Close: {fileID: 0}
toggle_DefaultQuestion: {fileID: 0}
toggle_YouChangeIChange: {fileID: 0}
toggle_OnlineService: {fileID: 0}
toggle_Enter: {fileID: 0}
toggle_DefaultQuestion: {fileID: 8779605733858429284}
toggle_YouChangeIChange: {fileID: 867493537761666578}
toggle_OnlineService: {fileID: 3437016823728720811}
input_Text: {fileID: 0}
--- !u!222 &3166613308906463922
CanvasRenderer:
@@ -2411,6 +2591,7 @@ GameObject:
- component: {fileID: 6799211336476796995}
- component: {fileID: 6389808633010172007}
- component: {fileID: 6495909469996249096}
- component: {fileID: 3437016823728720811}
m_Layer: 0
m_Name: zsbk_tab_1_2
m_TagString: Untagged
@@ -2477,6 +2658,66 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &3437016823728720811
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8429745142957546767}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 6495909469996249096}
toggleTransition: 1
graphic: {fileID: 1334048166197180193}
m_Group: {fileID: 908079249264142059}
onValueChanged:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 5996832527140282313}
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
m_MethodName: SetActive
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_IsOn: 0
--- !u!1 &8877947529159609125
GameObject:
m_ObjectHideFlags: 0
@@ -2494,7 +2735,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &2595741521076348832
RectTransform:
m_ObjectHideFlags: 0
@@ -1,4 +1,5 @@
using System.Collections;
using Assets.MyGame.Scripts.Net;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
@@ -10,10 +11,16 @@ public class UIHome_BY_ServicePanel : SubUIBase
public Toggle toggle_YouChangeIChange;
public Toggle toggle_OnlineService;
public TMP_InputField input_Text;
// Start is called before the first frame update
void Start()
public override void Awake()
{
base.Awake();
toggle_DefaultQuestion.onValueChanged.AddListener((a) =>
{
if (a)
{
//APIRequestList.GetOnlineCustomers
}
});
}
// Update is called once per frame