Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
efbafed9
Commit
efbafed9
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uu
parent
83e9b7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
cost.ts
project/src/panels/cost.ts
+7
-2
No files found.
project/src/panels/cost.ts
View file @
efbafed9
...
@@ -5,7 +5,7 @@ import { Panel } from "../../module/views/Panel";
...
@@ -5,7 +5,7 @@ import { Panel } from "../../module/views/Panel";
import
centerTextField
from
"../common/centerTextField"
;
import
centerTextField
from
"../common/centerTextField"
;
import
getObject
from
"../common/getObject"
;
import
getObject
from
"../common/getObject"
;
import
{
sendWebNetWithToken
}
from
"../sendWebNetWithToken"
;
import
{
sendWebNetWithToken
}
from
"../sendWebNetWithToken"
;
import
{
sendLog
,
sendWebNet
}
from
"../WebNet"
;
import
{
getWebData
,
sendLog
,
sendWebNet
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
NoPrizePanel
}
from
"./noprize"
;
import
{
NoPrizePanel
}
from
"./noprize"
;
import
{
notEnoughMoneyPanel
}
from
"./notEnoughMoney"
;
import
{
notEnoughMoneyPanel
}
from
"./notEnoughMoney"
;
...
@@ -27,7 +27,12 @@ export class CostPanel extends Panel {
...
@@ -27,7 +27,12 @@ export class CostPanel extends Panel {
}
}
getPrize
=
async
()
=>
{
getPrize
=
async
()
=>
{
const
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
{
toPlaywayId
:
'dazzle'
,
toActionId
:
'drawPrize'
});
const
indexResult
=
getWebData
(
WebNetName
.
index
);
const
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
{
toPlaywayId
:
'dazzle'
,
toActionId
:
'drawPrize'
,
credits
:
indexResult
.
data
.
needCredits
});
if
(
result
&&
result
.
success
)
{
if
(
result
&&
result
.
success
)
{
const
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
const
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
...
...
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