Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
7ed3713b
Commit
7ed3713b
authored
May 25, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into develop
parents
cd282ae1
a349da0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
AirDropController.php
api/controllers/AirDropController.php
+1
-1
OrderController.php
console/controllers/OrderController.php
+14
-1
No files found.
api/controllers/AirDropController.php
View file @
7ed3713b
...
...
@@ -154,7 +154,7 @@ class AirDropController extends BaseController
}
$this
->
data
=
AirDropApplyRecord
::
find
()
->
where
([
'apply_id'
=>
$model
[
'id'
],
'
reach'
=>
AirDropApplyRecord
::
REACH_YE
S
])
->
where
([
'apply_id'
=>
$model
[
'id'
],
'
draw_status'
=>
AirDropApplyRecord
::
STATUS_DRAW_SUEEES
S
])
->
sum
(
'amount'
);
if
(
empty
(
$this
->
data
))
{
$this
->
data
=
0
;
...
...
console/controllers/OrderController.php
View file @
7ed3713b
...
...
@@ -165,7 +165,7 @@ class OrderController extends Controller
$execer
=
'paracross'
;
$func_name
=
'GetTitle'
;
$playload
=
[
'data'
=>
'user.p.'
.
$val
[
'consensus_platform'
]
.
'.'
'data'
=>
'user.p.'
.
$val
[
'consensus_platform'
]
.
'.'
];
$result
=
$service
->
chainQuery
(
$execer
,
$func_name
,
$playload
);
if
(
!
isset
(
$result
[
'result'
]))
{
...
...
@@ -175,6 +175,19 @@ class OrderController extends Controller
if
(
$consensHeight
<
$height
)
{
continue
;
}
$func_name
=
'GetAssetTxResult'
;
$playload
=
[
'data'
=>
$val
[
'send_result'
]
];
$result
=
$service
->
chainQuery
(
$execer
,
$func_name
,
$playload
);
if
(
!
isset
(
$result
[
'result'
]))
{
continue
;
}
$tx_result
=
$result
[
'result'
][
'success'
];
if
(
false
==
$tx_result
)
{
continue
;
}
}
$currentModel
=
CoinCTocTransfer
::
findOne
(
$val
[
'id'
]);
$currentModel
->
query_result
=
$query_result
;
...
...
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