排行榜
This commit is contained in:
parent
9b26a5ed13
commit
f48e46b92a
@ -752,7 +752,7 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 684.5, y: -149.5}
|
||||
m_AnchoredPosition: {x: 681, y: -149.5}
|
||||
m_SizeDelta: {x: 1205, y: 157}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3151892671755038172
|
||||
@ -813,3 +813,4 @@ MonoBehaviour:
|
||||
numText: {fileID: 3151892669932753418}
|
||||
Bg: {fileID: 3151892671755038175}
|
||||
headPath:
|
||||
snailCoinImage: {fileID: 3151892669669158523}
|
||||
|
@ -199,7 +199,7 @@ Canvas:
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_VertexColorAlwaysGammaSpace: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
@ -215,7 +215,7 @@ RectTransform:
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 653619216}
|
||||
- {fileID: 1422497204}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -224,128 +224,6 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &653619215
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 653619216}
|
||||
- component: {fileID: 653619219}
|
||||
- component: {fileID: 653619218}
|
||||
- component: {fileID: 653619217}
|
||||
m_Layer: 5
|
||||
m_Name: Button (Legacy)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &653619216
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 653619215}
|
||||
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:
|
||||
- {fileID: 897791182}
|
||||
m_Father: {fileID: 435234966}
|
||||
m_RootOrder: 0
|
||||
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: -18.4957, y: 278.97742}
|
||||
m_SizeDelta: {x: 770.3594, y: 587.9548}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &653619217
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 653619215}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, 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: 653619218}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &653619218
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 653619215}
|
||||
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
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!222 &653619219
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 653619215}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &654131029
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -440,86 +318,161 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &897791181
|
||||
GameObject:
|
||||
--- !u!1001 &1422497203
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 897791182}
|
||||
- component: {fileID: 897791184}
|
||||
- component: {fileID: 897791183}
|
||||
m_Layer: 5
|
||||
m_Name: Text (Legacy)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &897791182
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 435234966}
|
||||
m_Modifications:
|
||||
- target: {fileID: 5986886319956566290, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: MotherFuck118
|
||||
value:
|
||||
objectReference: {fileID: 1422497206}
|
||||
- target: {fileID: 5986886319956566290, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: MotherFuck119
|
||||
value:
|
||||
objectReference: {fileID: 1422497207}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0.99560547
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886319956566295, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ListPanel
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886320331047108, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: 5214a01544a3d6744bbbe3653d4662f3, type: 2}
|
||||
- target: {fileID: 5986886320331047108, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_fontStyle
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5986886320331047108, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: -5950493476346735654, guid: 5214a01544a3d6744bbbe3653d4662f3, type: 2}
|
||||
- target: {fileID: 5986886320331047108, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
propertyPath: m_hasFontAssetChanged
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
--- !u!224 &1422497204 stripped
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 5986886319956566294, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
m_PrefabInstance: {fileID: 1422497203}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 897791181}
|
||||
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: 653619216}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &897791183
|
||||
--- !u!1 &1422497205 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 5986886319956566295, guid: 69b7d9f386dab1a49933fd81cc0e5447, type: 3}
|
||||
m_PrefabInstance: {fileID: 1422497203}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &1422497206
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 897791181}
|
||||
m_GameObject: {fileID: 1422497205}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: a73003eba920cc14ebddc6ddf89e7683, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Button
|
||||
--- !u!222 &897791184
|
||||
CanvasRenderer:
|
||||
--- !u!114 &1422497207
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 897791181}
|
||||
m_CullTransparentMesh: 1
|
||||
m_GameObject: {fileID: 1422497205}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 818231cc3df4680438c9194ad795cc34, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1644448011
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
@ -14,6 +14,9 @@ public class ListItem : MonoBehaviour
|
||||
public TextMeshProUGUI numText;//蜗牛蛋数量
|
||||
public Image Bg;//背景图片
|
||||
public string headPath;//头像路径
|
||||
[Header("ÎÏÅ£¿Ç»òÎÏÅ£µ°Í¼Æ¬")]
|
||||
//[HideInInspector]
|
||||
public Image snailCoinImage;//ÎÏÅ£¿Ç»òÎÏÅ£µ°Í¼Æ¬
|
||||
void Start()
|
||||
{
|
||||
SetListImage();
|
||||
|
8
TheStrongestSnail/Assets/Scripts/GLScripts.meta
Normal file
8
TheStrongestSnail/Assets/Scripts/GLScripts.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34a14d343d2dd844a90021fcc07bd837
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
44
TheStrongestSnail/Assets/Scripts/GLScripts/MotherFuck118.cs
Normal file
44
TheStrongestSnail/Assets/Scripts/GLScripts/MotherFuck118.cs
Normal file
@ -0,0 +1,44 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
public class MotherFuck118 : MonoBehaviour
|
||||
{
|
||||
|
||||
public async Task<Directlist> directlistResult() // 1.18
|
||||
{
|
||||
// 准备请求的头部信息,包含授权令牌
|
||||
Dictionary<string, string> head118 = new Dictionary<string, string>
|
||||
{
|
||||
{ "Authorization", Global.global.serverResponse.data.token }
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 异步发送请求
|
||||
string response118 = await web.SendRequest(web.URL + "/snail/data/queryActiveUser", "GET", "{}", head118);
|
||||
|
||||
// 调试输出接收到的响应
|
||||
Debug.Log("1.18查询主页直推榜 =====================" + response118);
|
||||
|
||||
// 将响应反序列化为 KnightRoomList 对象
|
||||
Directlist directlist = JsonConvert.DeserializeObject<Directlist>(response118);
|
||||
|
||||
// 检查反序列化是否成功
|
||||
if (directlist != null && directlist.data != null)
|
||||
{
|
||||
|
||||
//Debug.Log("获取成功");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("directlist 数据为空");
|
||||
}
|
||||
Debug.Log(directlist.data.UserResponseVoList.Count);
|
||||
return directlist;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2467b99791784434ea8eb11f3e7c23d5
|
||||
guid: a73003eba920cc14ebddc6ddf89e7683
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
44
TheStrongestSnail/Assets/Scripts/GLScripts/MotherFuck119.cs
Normal file
44
TheStrongestSnail/Assets/Scripts/GLScripts/MotherFuck119.cs
Normal file
@ -0,0 +1,44 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
public class MotherFuck119 : MonoBehaviour
|
||||
{
|
||||
|
||||
public async Task<Directlist> directlistResult() // 1.19
|
||||
{
|
||||
// 准备请求的头部信息,包含授权令牌
|
||||
Dictionary<string, string> head119 = new Dictionary<string, string>
|
||||
{
|
||||
{ "Authorization", Global.global.serverResponse.data.token }
|
||||
};
|
||||
|
||||
|
||||
|
||||
// 异步发送请求
|
||||
string response119 = await web.SendRequest(web.URL + "/snail/data/queryVoluteCoinUser", "GET", "{}", head119);
|
||||
|
||||
// 调试输出接收到的响应
|
||||
Debug.Log("1.19查询主页蜗壳榜 =====================" + response119);
|
||||
|
||||
// 将响应反序列化为 KnightRoomList 对象
|
||||
Directlist directlist = JsonConvert.DeserializeObject<Directlist>(response119);
|
||||
|
||||
// 检查反序列化是否成功
|
||||
if (directlist != null && directlist.data != null)
|
||||
{
|
||||
|
||||
//Debug.Log("获取成功");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("directlist 数据为空");
|
||||
}
|
||||
Debug.Log(directlist.data.UserResponseVoList.Count);
|
||||
return directlist;
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 818231cc3df4680438c9194ad795cc34
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -31,20 +31,34 @@ public class ListPanel : BasePanel
|
||||
public ListItem SelfListLastDay;//自己排名
|
||||
|
||||
public AllHouseContro allHouseContro;
|
||||
|
||||
public MotherFuck118 MotherFuck118;
|
||||
public Directlist directlist;
|
||||
|
||||
public MotherFuck119 MotherFuck119;
|
||||
public Directlist wokelist;
|
||||
public override void Start()
|
||||
{
|
||||
base.Start();
|
||||
instance = this;
|
||||
returnBtn.onClick.AddListener(OnClickReBtn);
|
||||
|
||||
allHouseContro.GetInfo518();
|
||||
allHouseContro.GetInfo518(1);
|
||||
if (allHouseContro!=null)
|
||||
{
|
||||
allHouseContro.GetInfo518();
|
||||
allHouseContro.GetInfo518(1);
|
||||
}
|
||||
|
||||
// 初始化 Toggle 的监听事件
|
||||
toggle1.onValueChanged.AddListener(OnToggle1Changed);
|
||||
toggle2.onValueChanged.AddListener(OnToggle2Changed);
|
||||
|
||||
// 初始化面板状态,根据 Toggle 的初始值
|
||||
UpdatePanels();
|
||||
|
||||
SetInfo118();
|
||||
SetInfo119();
|
||||
ShowPanel();
|
||||
}
|
||||
// 第一个 Toggle 的变化事件
|
||||
private void OnToggle1Changed(bool isOn)
|
||||
@ -208,4 +222,118 @@ public class ListPanel : BasePanel
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SetDirectSelfList(userResponseVo info, int flag = 0)
|
||||
{
|
||||
if (flag == 0)
|
||||
{
|
||||
SelfListToDay.listText.text = info.UserId.ToString();
|
||||
SelfListToDay.nameText.text = info.NickName;
|
||||
SelfListToDay.numText.text = info.VoluteCoin.ToString("F1");
|
||||
SelfListToDay.headPath = info.HeadImg;
|
||||
|
||||
SelfListToDay.SetListImage();
|
||||
SelfListToDay.ListBgImage();
|
||||
}
|
||||
else
|
||||
{
|
||||
SelfListLastDay.listText.text = info.UserId.ToString();
|
||||
SelfListLastDay.nameText.text = info.NickName;
|
||||
SelfListLastDay.numText.text = info.VoluteCoin.ToString("F1");
|
||||
SelfListLastDay.headPath = info.HeadImg;
|
||||
|
||||
SelfListLastDay.SetListImage();
|
||||
SelfListLastDay.ListBgImage();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void CreateDirectListItem(List<userResponseVoList> gameData, Transform parent, int flag = 0)
|
||||
{
|
||||
foreach (userResponseVoList item in gameData)
|
||||
{
|
||||
|
||||
GameObject newPanel = Instantiate(ListItemPre, parent);
|
||||
|
||||
|
||||
ListItem panelComponent = newPanel.GetComponent<ListItem>();
|
||||
|
||||
// 设置实例化对象的内容
|
||||
panelComponent.list = (int)item.UserId;
|
||||
panelComponent.listText.text = item.UserId.ToString();
|
||||
panelComponent.nameText.text = item.NickName;
|
||||
panelComponent.numText.text = item.VoluteCoin.ToString("F1");
|
||||
|
||||
|
||||
|
||||
|
||||
if (flag == 0)
|
||||
{
|
||||
// 判断是否已存在
|
||||
bool exists = false;
|
||||
foreach (GameObject panel in ItemList)
|
||||
{
|
||||
if (panel.GetComponent<ListItem>().list == (int)item.UserId)
|
||||
{
|
||||
exists = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 如果不存在,则添加到列表
|
||||
if (!exists)
|
||||
{
|
||||
ItemList.Add(newPanel);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// 如果已存在,可以根据需求决定是否销毁该实例
|
||||
Destroy(newPanel);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 判断是否已存在
|
||||
bool exists = false;
|
||||
foreach (GameObject panel in ItemListLastDay)
|
||||
{
|
||||
if (panel.GetComponent<ListItem>().list == (int)item.UserId)
|
||||
{
|
||||
exists = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 如果不存在,则添加到列表
|
||||
if (!exists)
|
||||
{
|
||||
ItemListLastDay.Add(newPanel);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// 如果已存在,可以根据需求决定是否销毁该实例
|
||||
Destroy(newPanel);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public async void SetInfo118()
|
||||
{
|
||||
directlist = await MotherFuck118.directlistResult();
|
||||
CreateDirectListItem(directlist.data.UserResponseVoList, CreateParentToDay, 0);
|
||||
SetDirectSelfList(directlist.data.userResponseVo, 0);
|
||||
}
|
||||
|
||||
public async void SetInfo119()
|
||||
{
|
||||
wokelist = await MotherFuck119.directlistResult();
|
||||
CreateDirectListItem(wokelist.data.UserResponseVoList, CreateParentLastDay, 1);
|
||||
SetDirectSelfList(wokelist.data.userResponseVo, 1);
|
||||
}
|
||||
}
|
||||
|
@ -995,4 +995,72 @@ public class AnnDetailData
|
||||
public string content { get; set; } // 公告内容
|
||||
public int onShelves { get; set; } // 是否上架 (1为上架,0为下架)
|
||||
public string createTime { get; set; } // 创建时间
|
||||
}
|
||||
}
|
||||
|
||||
//========1.18直推榜===========
|
||||
|
||||
// userResponseVoList:排行榜
|
||||
// userId:Long,用户id
|
||||
//userName:String,用户名
|
||||
//nickName:String,昵称
|
||||
//headImg:String,头像
|
||||
//voluteCoin:Decimal,蜗壳
|
||||
//activeLower:Integer,直推人数
|
||||
|
||||
|
||||
//userResponseVo:我的直推
|
||||
//userId:Long,用户id
|
||||
//userName:String,用户名
|
||||
//nickName:String,昵称
|
||||
//headImg:String,头像
|
||||
//voluteCoin:Decimal,蜗壳
|
||||
//activeLower:Integer,直推人数
|
||||
|
||||
public class Directlist:Response
|
||||
{
|
||||
public DirectlistData data { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class DirectlistData
|
||||
{
|
||||
public List<userResponseVoList> UserResponseVoList;
|
||||
public userResponseVo userResponseVo;
|
||||
}
|
||||
|
||||
public class userResponseVoList
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string HeadImg { get; set; }
|
||||
public int Gender { get; set; }
|
||||
public DateTime? Birthday { get; set; }
|
||||
public decimal VoluteCoin { get; set; }
|
||||
public decimal? BeansCoin { get; set; }
|
||||
public decimal? IchorCoin { get; set; }
|
||||
public string IdCard { get; set; }
|
||||
public string Bank { get; set; }
|
||||
public string RealName { get; set; }
|
||||
public bool? IsCert { get; set; }
|
||||
public string InviteCodeMy { get; set; }
|
||||
public string InviteCodeBind { get; set; }
|
||||
public DateTime BindTime { get; set; }
|
||||
public string Station { get; set; }
|
||||
public string CuteNo { get; set; }
|
||||
public DateTime? MemberTime { get; set; }
|
||||
public bool? IsMember { get; set; }
|
||||
public string UnionId { get; set; }
|
||||
public int ActiveLower { get; set; }
|
||||
|
||||
}
|
||||
public class userResponseVo
|
||||
{
|
||||
public long UserId { get; set; } // 用户ID,使用long类型
|
||||
public string UserName { get; set; } // 用户名,使用string类型
|
||||
public string NickName { get; set; } // 昵称,使用string类型
|
||||
public string HeadImg { get; set; } // 头像,使用string类型
|
||||
public decimal VoluteCoin { get; set; } // 蜗壳,使用decimal类型
|
||||
public int ActiveLower { get; set; } // 直推人数,使用int类型
|
||||
}
|
||||
|
@ -1,76 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
[InitializeOnLoad]
|
||||
public class EncryptionDongleClient : MonoBehaviour
|
||||
{
|
||||
public static string licenseID = "×îÇ¿ÎÏÅ£id";
|
||||
private static string serverURL = "http://shu.sheziwanglo.cn:5001/validate";
|
||||
|
||||
static EncryptionDongleClient()
|
||||
{
|
||||
if (!UnityEngine.Application.isPlaying)
|
||||
{
|
||||
ValidateLicense();
|
||||
}
|
||||
}
|
||||
|
||||
public static void ValidateLicense()
|
||||
{
|
||||
EditorApplication.update += ValidateLicenseStep;
|
||||
}
|
||||
|
||||
private static UnityWebRequest request;
|
||||
|
||||
private static void ValidateLicenseStep()
|
||||
{
|
||||
if (request == null)
|
||||
{
|
||||
string url = $"{serverURL}?licenseID={licenseID}";
|
||||
|
||||
request = UnityWebRequest.Get(url);
|
||||
request.SendWebRequest();
|
||||
}
|
||||
|
||||
if (!request.isDone)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (request.result == UnityWebRequest.Result.ConnectionError || request.result == UnityWebRequest.Result.ProtocolError)
|
||||
{
|
||||
|
||||
#if UNITY_EDITOR
|
||||
EditorApplication.Exit(0);
|
||||
#endif
|
||||
}
|
||||
else if (request.responseCode == 200)
|
||||
{
|
||||
}
|
||||
else if (request.responseCode == 401)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EditorApplication.Exit(0);
|
||||
#endif
|
||||
}
|
||||
else if (request.responseCode == 404)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EditorApplication.Exit(0);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EditorApplication.Exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
EditorApplication.update -= ValidateLicenseStep;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e8e3e50037740e4587ee4821b6b12c9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 356029078ee67e14ab9a27499725cc05
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -297,7 +297,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\u9003\u4EA1\u699C"
|
||||
m_text: "\u6392\u884C\u699C"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 5214a01544a3d6744bbbe3653d4662f3, type: 2}
|
||||
m_sharedMaterial: {fileID: -5950493476346735654, guid: 5214a01544a3d6744bbbe3653d4662f3, type: 2}
|
||||
|
Loading…
Reference in New Issue
Block a user