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
4c81a3f2
Commit
4c81a3f2
authored
Dec 07, 2020
by
shajiaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/optimize' into develop
parents
8ae0fb6e
25236481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
AirDropController.php
api/controllers/AirDropController.php
+10
-2
ExchangeBusiness.php
common/business/ExchangeBusiness.php
+4
-4
No files found.
api/controllers/AirDropController.php
View file @
4c81a3f2
...
...
@@ -18,13 +18,21 @@ class AirDropController extends BaseController
$data
=
Yii
::
$app
->
request
->
get
();
$identifier
=
$data
[
'identifier'
]
??
null
;
if
(
false
==
$identifier
)
{
$miner_address
=
$data
[
'miner_address'
]
??
null
;
if
(
false
==
$identifier
||
false
==
$miner_address
)
{
$this
->
code
=
-
1
;
$this
->
msg
=
'设备号错误,请重新输入.'
;
goto
doEnd
;
}
$exist
=
AirDropRulePool
::
find
()
->
where
([
'identifier'
=>
$identifier
])
->
one
();
// $exist = AirDropRulePool::find()->where(['identifier' => $identifier])->one();
// if (false == $exist || false == $exist->rule) {
// $this->code = -1;
// $this->msg = '设备号错误,请重新输入.';
// goto doEnd;
// }
$exist
=
AirDrop
::
find
()
->
where
([
'identifier'
=>
$identifier
,
'miner_address'
=>
$miner_address
])
->
one
();
if
(
false
==
$exist
||
false
==
$exist
->
rule
)
{
$this
->
code
=
-
1
;
$this
->
msg
=
'设备号错误,请重新输入.'
;
...
...
common/business/ExchangeBusiness.php
View file @
4c81a3f2
...
...
@@ -144,10 +144,10 @@ class ExchangeBusiness
if
(
strtoupper
(
$tag
)
==
'POKE'
)
{
$quotation
=
[
'low'
=>
0.16
17
,
'high'
=>
0.16
17
,
'last'
=>
0.16
17
,
'rmb'
=>
0.16
17
,
'low'
=>
0.16
21
,
'high'
=>
0.16
21
,
'last'
=>
0.16
21
,
'rmb'
=>
0.16
21
,
];
goto
doEnd
;
}
...
...
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