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
f3648d20
Commit
f3648d20
authored
Nov 01, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
60f0b8c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
IssueCoinController.php
api/controllers/IssueCoinController.php
+20
-0
IssueChainTransferController.php
console/controllers/IssueChainTransferController.php
+1
-8
No files found.
api/controllers/IssueCoinController.php
View file @
f3648d20
...
...
@@ -162,6 +162,16 @@ class IssueCoinController extends BaseController
public
function
actionSendTransfer
()
{
$data
=
null
;
$header
=
Yii
::
$app
->
request
->
headers
;
$platform_id
=
$header
[
'FZM-PLATFORM-ID'
]
??
null
;
if
(
empty
(
$platform_id
))
{
$msg
=
'缺少必要的参数'
;
$code
=
-
1
;
goto
doEnd
;
}
$params
=
Yii
::
$app
->
request
->
post
();
$id
=
isset
(
$params
[
'id'
])
?
(
int
)
$params
[
'id'
]
:
0
;
$pre_create_tx
=
isset
(
$params
[
'pre_create_tx'
])
?
$params
[
'pre_create_tx'
]
:
''
;
...
...
@@ -212,6 +222,16 @@ class IssueCoinController extends BaseController
*/
public
function
actionVerify
()
{
$data
=
null
;
$header
=
Yii
::
$app
->
request
->
headers
;
$platform_id
=
$header
[
'FZM-PLATFORM-ID'
]
??
null
;
if
(
empty
(
$platform_id
))
{
$msg
=
'缺少必要的参数'
;
$code
=
-
1
;
goto
doEnd
;
}
$params
=
Yii
::
$app
->
request
->
post
();
$id
=
isset
(
$params
[
'id'
])
?
(
int
)
$params
[
'id'
]
:
0
;
$status
=
isset
(
$params
[
'status'
])
?
(
int
)
$params
[
'status'
]
:
0
;
...
...
console/controllers/IssueChainTransferController.php
View file @
f3648d20
...
...
@@ -24,7 +24,7 @@ class IssueChainTransferController extends Controller
public
function
actionSendTransaction
(
$step
,
$type
)
{
if
(
0
==
$type
)
{
$status
=
CoinIssueCoin
::
UN_AUDIT
;
$status
=
CoinIssueCoin
::
ALLOWED_ISSUE
;
$manual_review
=
Yii
::
$app
->
redis
->
get
(
'issue_chain_manual_review'
);
if
(
'close'
==
$manual_review
)
{
return
0
;
...
...
@@ -238,10 +238,4 @@ class IssueChainTransferController extends Controller
$coin_issue_record
->
save
();
}
public
function
syncTransfer
(
$id
)
{
$issue_transfer
=
CoinIssueTransfer
::
find
()
->
where
([
'id'
=>
$id
])
->
one
();
$issue_transfer
->
unissue
=
0
;
$issue_transfer
->
save
();
}
}
\ No newline at end of file
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