提现配置提现账户设置接口的接入,以及锻造模块全部接口的接入

This commit is contained in:
liuliang 2024-12-29 18:02:57 +08:00
parent 88fe3629d6
commit 207c891f9b
18 changed files with 1659 additions and 2032 deletions

View File

@ -228,12 +228,12 @@ MonoBehaviour:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 32
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 0
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 0
m_HorizontalOverflow: 1
@ -738,12 +738,12 @@ MonoBehaviour:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 32
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 0
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 0
m_HorizontalOverflow: 1
@ -963,6 +963,7 @@ GameObject:
- component: {fileID: 724295879135203547}
- component: {fileID: 724295879135203545}
- component: {fileID: 724295879135203544}
- component: {fileID: 3629566805686748004}
m_Layer: 5
m_Name: BindingPanel
m_TagString: Untagged
@ -983,6 +984,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 724295879466561808}
- {fileID: 2899608596492764363}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -1029,6 +1031,24 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &3629566805686748004
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 724295879135203546}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a5f6459be9322834e950975ad49d9104, type: 3}
m_Name:
m_EditorClassIdentifier:
nickName: {fileID: 724295878604521385}
Account: {fileID: 724295878241665574}
CancleBtn: {fileID: 724295879034873974}
SureBtn: {fileID: 724295878261752773}
CloseBtn: {fileID: 5826217969633171335}
lingjiang: {fileID: 0}
--- !u!1 &724295879466561811
GameObject:
m_ObjectHideFlags: 0
@ -1499,3 +1519,124 @@ MonoBehaviour:
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u652F\u4ED8\u5B9D\u6635\u79F0\uFF1A"
--- !u!1 &5717139140747390200
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2899608596492764363}
- component: {fileID: 2945923608835780898}
- component: {fileID: 4880876999577401317}
- component: {fileID: 5826217969633171335}
m_Layer: 5
m_Name: CloseBtn
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2899608596492764363
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5717139140747390200}
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: 724295879135203547}
m_RootOrder: 1
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: 376, y: 241}
m_SizeDelta: {x: 72, y: 72}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2945923608835780898
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5717139140747390200}
m_CullTransparentMesh: 1
--- !u!114 &4880876999577401317
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5717139140747390200}
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: de89cc803d252bc43920571e5f9826a3, 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!114 &5826217969633171335
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5717139140747390200}
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: 4880876999577401317}
m_OnClick:
m_PersistentCalls:
m_Calls: []

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bb034e205f89fc847bfdefb80c9f4eef
guid: 52be06cba6f3bce409359d87a2dcda73
PrefabImporter:
externalObjects: {}
userData:

File diff suppressed because it is too large Load Diff

View File

@ -9,30 +9,29 @@ public class Lingjiang_Tanchuang : mount
public Text title;
public Text balance;
public Text explained;
public Text BindingTips;
public Transform canvas;
public GameObject bendingprefab;
private async void OnEnable()
{
Init();
}
// Start is called before the first frame update
void Start()
{
Kfbtn.onClick.AddListener(Display_pop_up_window);
Txbtn.onClick.AddListener(TxClick);
}
private void Display_pop_up_window()//绑定支付宝或者银行卡
{
GameObject obj= Instantiate(bendingprefab,canvas);
obj.GetComponent<BindingPanel>().lingjiang = this;
}
void TxClick()//提现支付宝或者银行卡
@ -41,7 +40,7 @@ public class Lingjiang_Tanchuang : mount
}
async void Init()
public async void Init()
{
WithdrawConfigResponse response = await Scene_main_jiekou.instance.WithdrawConfigs();
title.text = response.data.config.title;
@ -51,6 +50,7 @@ public class Lingjiang_Tanchuang : mount
{
Debug.Log(response.data.accounts);
Txbtn.gameObject.SetActive(true);
BindingTips.text = "";
}
else
{

View File

@ -162,7 +162,7 @@ public class Scene_main_jiekou :MonoBehaviour
return await product_list.ProductList();
}
public async Task<bool> BuyProducts(int id)//²úÆ·¹ºÂò
public async Task<myResponse> BuyProducts(int id)//²úÆ·¹ºÂò
{
BuyProductBody body = new BuyProductBody();
body.id = id;
@ -220,7 +220,7 @@ public class Scene_main_jiekou :MonoBehaviour
return await forgingConfig.ForgingInfo();
}
public async Task<bool> ForgingSumbits(int id)//¶ÍÔìÌá½»
public async Task<myResponse> ForgingSumbits(int id)//¶ÍÔìÌá½»
{
ForgingSumbitBody body =new ForgingSumbitBody();
body.id = id;

View File

@ -0,0 +1,52 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BindingPanel : MonoBehaviour
{
public Text nickName;
public Text Account;
public Button CancleBtn;
public Button SureBtn;
public Button CloseBtn;
[HideInInspector]
public Lingjiang_Tanchuang lingjiang;
void Start()
{
CancleBtn.onClick.AddListener(CancleClick);
SureBtn.onClick.AddListener(Sureclick);
CloseBtn.onClick.AddListener(CancleClick);
}
void CancleClick()
{
Destroy(this.gameObject);
}
async void Sureclick()
{
bool issuccefful = await Scene_main_jiekou.instance.WithdrawAccountUpdate(1,nickName.text,Account.text,"");
if (issuccefful)
{
Promptmgr.Instance.PromptBubble("绑定成功");
lingjiang.Init();
Destroy(this.gameObject);
}
else
{
Promptmgr.Instance.PromptBubble("昵称或称号错误");
}
}
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a5f6459be9322834e950975ad49d9104
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -22,10 +22,14 @@ public class FirstChargeitem : MonoBehaviour
async void BuyClick()
{
bool issucceffull= await Scene_main_jiekou.instance.BuyProducts(id);
if (issucceffull)
myResponse response= await Scene_main_jiekou.instance.BuyProducts(id);
if (response.code == 200)
{
Debug.Log("完成购买接口");
Promptmgr.Instance.PromptBubble(response.message);
}
else
{
Promptmgr.Instance.PromptBubble(response.message);
}

View File

@ -0,0 +1,43 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class FrogeItem : MonoBehaviour
{
public string icon;
public TextMeshProUGUI name;
[HideInInspector]
public int id;
public Text price;
public Image price_type;
public TextMeshProUGUI yield_cycle;
public Button buyBtn;
public Sprite gold;
public Sprite gem;
void Start()
{
buyBtn.onClick.AddListener(buyClick);
}
async void buyClick()
{
myResponse response = await Scene_main_jiekou.instance.ForgingSumbits(id);
if (response.code == 200)
{
Promptmgr.Instance.PromptBubble(response.message);
}
else
{
Promptmgr.Instance.PromptBubble(response.message);
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3e5a1790c0edac2408aa869d2f85e653
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,61 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scenefroge : MonoBehaviour
{
public GameObject forgingItem;
public Transform Connact;
public List<GameObject> forginglist =new List<GameObject>();
private async void OnEnable()
{
ForgingResponse forging = await Scene_main_jiekou.instance.ForgingInfos();
for (int i = 0; i < forginglist.Count; i++)
{
forginglist[i].GetComponent<FrogeItem>().icon = forging.Data[i].Icon;
forginglist[i].GetComponent<FrogeItem>().id =forging.Data[i].Id;
forginglist[i].GetComponent<FrogeItem>().name.text = forging.Data[i].Name;
forginglist[i].GetComponent<FrogeItem>().yield_cycle.text = forging.Data[i].yield_cycle.ToString();
forginglist[i].GetComponent<FrogeItem>().price.text =forging.Data[i].Price.ToString();
if (forging.Data[i].price_type == 1)
{
forginglist[i].GetComponent<FrogeItem>().price_type.sprite = forginglist[i].GetComponent<FrogeItem>().gem;
}
else
{
forginglist[i].GetComponent<FrogeItem>().price_type.sprite = forginglist[i].GetComponent<FrogeItem>().gold;
}
}
}
async void Start()
{
ForgingResponse forging = await Scene_main_jiekou.instance.ForgingInfos();
for (int i = 0; i < forging.Data.Count; i++)
{
GameObject obj = Instantiate(forgingItem, Connact);
obj.GetComponent<FrogeItem>().icon = forging.Data[i].Icon;
obj.GetComponent<FrogeItem>().id = forging.Data[i].Id;
obj.GetComponent<FrogeItem>().name.text = forging.Data[i].Name;
obj.GetComponent<FrogeItem>().yield_cycle.text = forging.Data[i].yield_cycle.ToString();
obj.GetComponent<FrogeItem>().price.text = forging.Data[i].Price.ToString();
if (forging.Data[i].price_type == 1)
{
obj.GetComponent<FrogeItem>().price_type.sprite = obj.GetComponent<FrogeItem>().gem;
}
else
{
obj.GetComponent<FrogeItem>().price_type.sprite = obj.GetComponent<FrogeItem>().gold;
}
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 39e7a4c98127d6d4aa89ceeab1053998
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -43,10 +43,10 @@ public class ForgingData
public int Id { get; set; }
public string Name { get; set; }
public string Icon { get; set; }
public int Price { get; set; }
public int PriceType { get; set; }
public int Yield { get; set; }
public int YieldCycle { get; set; }
public float Price { get; set; }
public int price_type { get; set; }
public float Yield { get; set; }
public int yield_cycle { get; set; }
public int ActivateLimit { get; set; }
public int ActivateCount { get; set; }
}

View File

@ -20,7 +20,7 @@ public class ForgingSumbit : MonoBehaviour
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<bool> ForgingSumbits(ForgingSumbitBody body)
public async Task<myResponse> ForgingSumbits(ForgingSumbitBody body)
{
Debug.Log("¶ÍÔìÌá½»Èë²Î===" + JsonConvert.SerializeObject(body));
@ -28,9 +28,8 @@ public class ForgingSumbit : MonoBehaviour
Debug.Log("¶ÍÔìÌá½»" + response);
myResponse petBelltesResponse = JsonConvert.DeserializeObject<myResponse>(response);
Debug.Log("=========" + petBelltesResponse.message);
bool isSucceed;
if (petBelltesResponse.code == 200) { isSucceed = true; } else { isSucceed = false; }
return isSucceed;
return petBelltesResponse;
}
}

View File

@ -22,7 +22,7 @@ public class playerInfo : MonoBehaviour
}
public async Task<PlayerIndfo> PalyerInfo()
{
Debug.Log("进入用户详情");
Debug.Log("进入用户详情");
string response = await myWeb.SendRequest(myWeb.URL + "/api/user/detail", "GET", "{}", CreateHeaders());
Debug.Log("用户详情" + response);
PlayerIndfo playerIndfo = JsonConvert.DeserializeObject<PlayerIndfo>(response);

View File

@ -20,17 +20,15 @@ public class productBuy : MonoBehaviour
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<bool> BuyProduct(BuyProductBody body )
public async Task<myResponse> BuyProduct(BuyProductBody body )
{
//BuyProductBody body = new BuyProductBody();
//body.id = id;
string response = await myWeb.SendRequest(myWeb.URL + "/api/recharge/product_buy", "POST", JsonConvert.SerializeObject(body), CreateHeaders());
Debug.Log("¹ºÂò²úÆ·" + response);
myResponse Response = JsonConvert.DeserializeObject<myResponse>(response);
bool isSucceed;
if (Response.code == 200) { isSucceed = true; } else { isSucceed = false; }
Debug.Log(isSucceed + "==================");
return isSucceed;
return Response;
}
}
//=====================================================================================================================================

View File

@ -39,7 +39,7 @@ public class onlyTest : MonoBehaviour
transfersearch transfersearch = new transfersearch();
transferapply transferapply = new transferapply();
transferlist transferlist = new transferlist();
async void Start()
{