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
098cac4a
Commit
098cac4a
authored
Oct 12, 2019
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
7c5aa62a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
9 deletions
+64
-9
IssueChainController.php
api/controllers/IssueChainController.php
+5
-3
IssueCoinController.php
api/controllers/IssueCoinController.php
+17
-3
IssueChainController.php
wallet/controllers/IssueChainController.php
+21
-3
IssueCoinController.php
wallet/controllers/IssueCoinController.php
+21
-0
No files found.
api/controllers/IssueChainController.php
View file @
098cac4a
...
@@ -9,10 +9,8 @@ use common\models\psources\CoinPlatform;
...
@@ -9,10 +9,8 @@ use common\models\psources\CoinPlatform;
class
IssueChainController
extends
BaseController
class
IssueChainController
extends
BaseController
{
{
/**
/**
*
landing
*
可发行链列表
* @return array
* @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/
*/
public
function
actionIndex
()
public
function
actionIndex
()
{
{
...
@@ -57,6 +55,10 @@ class IssueChainController extends BaseController
...
@@ -57,6 +55,10 @@ class IssueChainController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 人工审核状态
* @return array
*/
public
function
actionManualReviewStatus
()
public
function
actionManualReviewStatus
()
{
{
$status
=
0
;
$status
=
0
;
...
...
api/controllers/IssueCoinController.php
View file @
098cac4a
...
@@ -11,10 +11,8 @@ use common\models\psources\CoinIssueCoin;
...
@@ -11,10 +11,8 @@ use common\models\psources\CoinIssueCoin;
class
IssueCoinController
extends
BaseController
class
IssueCoinController
extends
BaseController
{
{
/**
/**
*
landing
*
发行申请
* @return array
* @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/
*/
public
function
actionApply
()
public
function
actionApply
()
{
{
...
@@ -71,6 +69,12 @@ class IssueCoinController extends BaseController
...
@@ -71,6 +69,12 @@ class IssueCoinController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 申请列表
* @param integer page
* @param integer size
* @return array
*/
public
function
actionApplyList
()
public
function
actionApplyList
()
{
{
$data
=
null
;
$data
=
null
;
...
@@ -118,6 +122,11 @@ class IssueCoinController extends BaseController
...
@@ -118,6 +122,11 @@ class IssueCoinController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 申请详情
* @param integer id
* @return array
*/
public
function
actionApplyDetail
()
public
function
actionApplyDetail
()
{
{
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
''
);
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
''
);
...
@@ -140,6 +149,11 @@ class IssueCoinController extends BaseController
...
@@ -140,6 +149,11 @@ class IssueCoinController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 撤消申请
* @param integer id
* @return array
*/
public
function
actionVerify
()
public
function
actionVerify
()
{
{
$id
=
Yii
::
$app
->
request
->
post
(
'id'
,
''
);
$id
=
Yii
::
$app
->
request
->
post
(
'id'
,
''
);
...
...
wallet/controllers/IssueChainController.php
View file @
098cac4a
...
@@ -10,10 +10,8 @@ use wallet\base\BaseController;
...
@@ -10,10 +10,8 @@ use wallet\base\BaseController;
class
IssueChainController
extends
BaseController
class
IssueChainController
extends
BaseController
{
{
/**
/**
*
landing
*
可发行链列表
* @return array
* @return array
* @throws \yii\base\Exception
* @throws \yii\base\InvalidConfigException
*/
*/
public
function
actionIndex
()
public
function
actionIndex
()
{
{
...
@@ -49,6 +47,10 @@ class IssueChainController extends BaseController
...
@@ -49,6 +47,10 @@ class IssueChainController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 发行链信息
* @return array
*/
public
function
actionChainInfo
()
public
function
actionChainInfo
()
{
{
$data
=
null
;
$data
=
null
;
...
@@ -85,6 +87,12 @@ class IssueChainController extends BaseController
...
@@ -85,6 +87,12 @@ class IssueChainController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 设置手续费
* @param integer issue_charge
* @param integer charge_unit_id
* @return array
*/
public
function
actionSetCharge
()
public
function
actionSetCharge
()
{
{
$data
=
null
;
$data
=
null
;
...
@@ -121,10 +129,20 @@ class IssueChainController extends BaseController
...
@@ -121,10 +129,20 @@ class IssueChainController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
];
}
}
/**
* 人工审核开启/关闭
* @param string manual_review
* @return array
*/
public
function
actionManageReview
()
public
function
actionManageReview
()
{
{
$data
=
null
;
$data
=
null
;
$platform_id
=
Yii
::
$app
->
request
->
getPlatformId
();
$platform_id
=
Yii
::
$app
->
request
->
getPlatformId
();
if
(
1
!=
$platform_id
)
{
$msg
=
'当前账户无权限操作'
;
$code
=
-
1
;
goto
doEnd
;
}
$manual_review
=
\Yii
::
$app
->
request
->
post
(
'manual_review'
,
''
);
$manual_review
=
\Yii
::
$app
->
request
->
post
(
'manual_review'
,
''
);
if
(
!
in_array
(
$manual_review
,
[
'open'
,
'close'
]))
{
if
(
!
in_array
(
$manual_review
,
[
'open'
,
'close'
]))
{
...
...
wallet/controllers/IssueCoinController.php
View file @
098cac4a
...
@@ -9,6 +9,15 @@ use common\models\psources\CoinIssueCoin;
...
@@ -9,6 +9,15 @@ use common\models\psources\CoinIssueCoin;
class
IssueCoinController
extends
BaseController
class
IssueCoinController
extends
BaseController
{
{
/**
* 申请列表
* @param integer page
* @param integer size
* @param integer status
* @param string owner
* @param integer chain_id
* @return array
*/
public
function
actionApplyList
()
public
function
actionApplyList
()
{
{
$platform_id
=
Yii
::
$app
->
request
->
getPlatformId
();
$platform_id
=
Yii
::
$app
->
request
->
getPlatformId
();
...
@@ -66,6 +75,11 @@ class IssueCoinController extends BaseController
...
@@ -66,6 +75,11 @@ class IssueCoinController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 申请详情
* @param integer id
* @return array
*/
public
function
actionApplyDetail
()
public
function
actionApplyDetail
()
{
{
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
''
);
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
''
);
...
@@ -87,6 +101,13 @@ class IssueCoinController extends BaseController
...
@@ -87,6 +101,13 @@ class IssueCoinController extends BaseController
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
return
[
'code'
=>
$code
,
'msg'
=>
$msg
,
'data'
=>
$data
];
}
}
/**
* 申请操作管理
* @param integer id
* @param integer status
* @param string msg
* @return array
*/
public
function
actionVerify
()
public
function
actionVerify
()
{
{
$id
=
Yii
::
$app
->
request
->
post
(
'id'
,
''
);
$id
=
Yii
::
$app
->
request
->
post
(
'id'
,
''
);
...
...
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