Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
wdlc_mjb_unity
Commits
d65ceb1e
Commit
d65ceb1e
authored
Jun 22, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改脚本
parent
ae894317
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
27 deletions
+24
-27
ExchangeItem.cs
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
+6
-11
PlantTreeItem.cs
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
+1
-16
PlantTreeControl.cs
Assets/Game/Main/Scripts/dialog/PlantTreeControl.cs
+17
-0
No files found.
Assets/Game/Main/Scripts/Item/ExchangeItem.cs
View file @
d65ceb1e
...
@@ -27,17 +27,12 @@ public class ExchangeItem : MonoBehaviour
...
@@ -27,17 +27,12 @@ public class ExchangeItem : MonoBehaviour
public
void
clickDuihuan
()
public
void
clickDuihuan
()
{
{
Debug
.
Log
(
""
+
bean
.
id
);
Debug
.
Log
(
""
+
bean
.
id
);
Dictionary
<
string
,
object
>
parm
=
new
Dictionary
<
string
,
object
>();
if
(
bean
.
status
==
0
)
parm
.
Clear
();
parm
.
Add
(
"id"
,
bean
.
id
);
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/exchange/choose"
,
parm
,
new
Action
<
GoodsBean
>((
bean
)
=>
{
// setItemData(bean);
FindObjectOfType
<
DialogControl
>().
ShowRealAwardsWinDialog
().
SetUpSubviews
(
bean
.
goods
.
img
,
bean
.
goods
.
name
,
bean
.
no
);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
{
ToastPlugin
.
ToastHelper
.
ShowToast
(
"余额不足"
);
return
;
}
FindObjectOfType
<
DialogControl
>().
ShowRealAwardsWinDialog
().
SetUpSubviews
(
bean
.
img
,
bean
.
name
,
bean
.
id
+
""
);
}));
}
}
}
}
Assets/Game/Main/Scripts/Item/PlantTreeItem.cs
View file @
d65ceb1e
...
@@ -176,20 +176,5 @@ public class PlantTreeItem : MonoBehaviour
...
@@ -176,20 +176,5 @@ public class PlantTreeItem : MonoBehaviour
}
}
//完成填写信息后
public
void
FinishWriteInfo
(
int
id
)
{
Dictionary
<
string
,
object
>
parm
=
new
Dictionary
<
string
,
object
>();
parm
.
Clear
();
parm
.
Add
(
"id"
,
id
);
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/exchange/choose"
,
parm
,
new
Action
<
GoodsBean
>((
bean
)
=>
{
// setItemData(bean);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
}));
}
}
}
Assets/Game/Main/Scripts/dialog/PlantTreeControl.cs
View file @
d65ceb1e
...
@@ -159,4 +159,21 @@ public class PlantTreeControl : MonoBehaviour
...
@@ -159,4 +159,21 @@ public class PlantTreeControl : MonoBehaviour
getRecordLog
();
getRecordLog
();
// index = 3;
// index = 3;
}
}
//完成填写信息后
public
void
FinishWriteInfo
(
int
id
)
{
Dictionary
<
string
,
object
>
parm
=
new
Dictionary
<
string
,
object
>();
parm
.
Clear
();
parm
.
Add
(
"id"
,
id
);
HttpTool
.
Instance
.
_Post
(
"app/v1/game/module/exchange/choose"
,
parm
,
new
Action
<
GoodsBean
>((
bean
)
=>
{
// setItemData(bean);
}),
new
Action
<
string
,
string
>((
code
,
errMsg
)
=>
{
}));
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment