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
333cff58
Commit
333cff58
authored
Nov 19, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
536399a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
WalletController.php
api/controllers/WalletController.php
+1
-1
CoinIssueCoin.php
common/models/psources/CoinIssueCoin.php
+2
-2
No files found.
api/controllers/WalletController.php
View file @
333cff58
...
...
@@ -94,7 +94,7 @@ class WalletController extends BaseController
$execer
=
'coins'
;
$result
=
$service
->
getBalance
(
$address
,
$execer
);
if
(
0
!==
$result
[
'code'
])
{
$msg
=
$result
[
'msg'
]
;
$msg
=
'当前发币人数过多,请客官稍后再试'
;
$code
=
-
1
;
$data
=
null
;
goto
doEnd
;
...
...
common/models/psources/CoinIssueCoin.php
View file @
333cff58
...
...
@@ -130,8 +130,8 @@ class CoinIssueCoin extends CommonActiveRecord
}
$issue_record
=
CoinIssueCoin
::
find
()
->
where
([
'platform_id'
=>
$this
->
platform_id
,
'symbol'
=>
$this
->
symbol
,
'status'
=>
CoinIssueCoin
::
STATUS_SUCCESS
])
->
sum
(
'total'
);
$issue_record
=
empty
(
$issue_record
)
?
0
:
$issue_record
;
if
(
$issue_record
+
$this
->
$attribute
>
2
0
)
{
$this
->
addError
(
$attribute
,
'最大发行量
2
0亿,目前已发行'
.
$issue_record
.
'亿'
);
if
(
$issue_record
+
$this
->
$attribute
>
90
0
)
{
$this
->
addError
(
$attribute
,
'最大发行量
90
0亿,目前已发行'
.
$issue_record
.
'亿'
);
return
false
;
}
}
...
...
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