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
69480593
Commit
69480593
authored
Mar 07, 2019
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释
parent
b7ec991d
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
287 additions
and
2 deletions
+287
-2
AppController.php
api/controllers/AppController.php
+4
-0
CoinController.php
api/controllers/CoinController.php
+4
-0
ServiceController.php
api/controllers/ServiceController.php
+17
-1
AppController.php
backend/controllers/AppController.php
+9
-0
ApplicateRankController.php
backend/controllers/ApplicateRankController.php
+28
-0
ApplicateRecommendController.php
backend/controllers/ApplicateRecommendController.php
+16
-0
ApplicationCategoryController.php
backend/controllers/ApplicationCategoryController.php
+25
-0
ApplicationController.php
backend/controllers/ApplicationController.php
+33
-0
CoinBannerController.php
backend/controllers/CoinBannerController.php
+8
-0
CoinController.php
backend/controllers/CoinController.php
+52
-0
CoinPublishController.php
backend/controllers/CoinPublishController.php
+23
-0
CoinPublishRuleController.php
backend/controllers/CoinPublishRuleController.php
+22
-0
CoinReleaseCheckController.php
backend/controllers/CoinReleaseCheckController.php
+1
-0
CoinReleaseMemberController.php
backend/controllers/CoinReleaseMemberController.php
+5
-1
ImageController.php
backend/controllers/ImageController.php
+4
-0
MinerFeeController.php
backend/controllers/MinerFeeController.php
+8
-0
WalletController.php
backend/controllers/WalletController.php
+4
-0
ApplicationController.php
h5/controllers/ApplicationController.php
+4
-0
CoinController.php
h5/controllers/CoinController.php
+8
-0
GuodunController.php
h5/controllers/GuodunController.php
+8
-0
LotteryController.php
h5/controllers/LotteryController.php
+4
-0
No files found.
api/controllers/AppController.php
View file @
69480593
...
@@ -50,6 +50,10 @@ class AppController extends BaseController
...
@@ -50,6 +50,10 @@ class AppController extends BaseController
return
$data
;
return
$data
;
}
}
/**
* @return array
* 获取最新版本
*/
public
function
actionUpdateVersion
()
public
function
actionUpdateVersion
()
{
{
$type
=
\Yii
::
$app
->
request
->
post
(
'type'
,
1
);
$type
=
\Yii
::
$app
->
request
->
post
(
'type'
,
1
);
...
...
api/controllers/CoinController.php
View file @
69480593
...
@@ -298,6 +298,10 @@ class CoinController extends BaseController
...
@@ -298,6 +298,10 @@ class CoinController extends BaseController
return
false
;
return
false
;
}
}
/**
* @return array
* 获取平台币图标、区块链地址
*/
public
function
actionGetBrowerByPlatform
()
public
function
actionGetBrowerByPlatform
()
{
{
$request
=
Yii
::
$app
->
request
;
$request
=
Yii
::
$app
->
request
;
...
...
api/controllers/ServiceController.php
View file @
69480593
...
@@ -18,7 +18,7 @@ use common\service\exchange\ExchangeFactory;
...
@@ -18,7 +18,7 @@ use common\service\exchange\ExchangeFactory;
use
Yii
;
use
Yii
;
/**
/**
* 对外服务控制器
* 对外
(托管钱包)
服务控制器
* Class CoinController
* Class CoinController
*
*
* @package api\controllers
* @package api\controllers
...
@@ -85,6 +85,10 @@ class ServiceController extends BaseController
...
@@ -85,6 +85,10 @@ class ServiceController extends BaseController
}
}
}
}
/**
* @return array
* 托管钱包首页
*/
public
function
actionCoinIndex
()
public
function
actionCoinIndex
()
{
{
//$request = Yii::$app->request;
//$request = Yii::$app->request;
...
@@ -95,6 +99,10 @@ class ServiceController extends BaseController
...
@@ -95,6 +99,10 @@ class ServiceController extends BaseController
return
[
'code'
=>
0
,
'data'
=>
$rows
,
'msg'
=>
'币种列表获取成功'
];
return
[
'code'
=>
0
,
'data'
=>
$rows
,
'msg'
=>
'币种列表获取成功'
];
}
}
/**
* @return array
* 托管钱包推荐币种
*/
private
function
coinRecommendList
()
private
function
coinRecommendList
()
{
{
$recommend_list
=
CoinRecommend
::
find
()
->
select
(
'cid'
)
->
where
([
'platform_id'
=>
6
])
->
all
();
$recommend_list
=
CoinRecommend
::
find
()
->
select
(
'cid'
)
->
where
([
'platform_id'
=>
6
])
->
all
();
...
@@ -123,6 +131,10 @@ class ServiceController extends BaseController
...
@@ -123,6 +131,10 @@ class ServiceController extends BaseController
return
[
'code'
=>
0
,
'data'
=>
$fee
,
'msg'
=>
'旷工费获取成功'
];
return
[
'code'
=>
0
,
'data'
=>
$fee
,
'msg'
=>
'旷工费获取成功'
];
}
}
/**
* @return float|int
* 获取汇率
*/
private
function
getRate
()
private
function
getRate
()
{
{
$exchange
=
ExchangeFactory
::
createExchange
(
"Bty"
);
$exchange
=
ExchangeFactory
::
createExchange
(
"Bty"
);
...
@@ -130,6 +142,10 @@ class ServiceController extends BaseController
...
@@ -130,6 +142,10 @@ class ServiceController extends BaseController
return
(
float
)
$rate
[
'rmb'
]
/
$rate
[
'last'
];
return
(
float
)
$rate
[
'rmb'
]
/
$rate
[
'last'
];
}
}
/**
* @return array
* 根据币种获取类型
*/
public
function
actionChain
()
public
function
actionChain
()
{
{
$request
=
Yii
::
$app
->
request
;
$request
=
Yii
::
$app
->
request
;
...
...
backend/controllers/AppController.php
View file @
69480593
...
@@ -17,6 +17,10 @@ use yii\web\UploadedFile;
...
@@ -17,6 +17,10 @@ use yii\web\UploadedFile;
class
AppController
extends
BaseController
class
AppController
extends
BaseController
{
{
/**
* @return array|string|\yii\db\ActiveRecord[]
* 应用列表
*/
public
function
actionList
()
public
function
actionList
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -79,6 +83,7 @@ class AppController extends BaseController
...
@@ -79,6 +83,7 @@ class AppController extends BaseController
* @return array
* @return array
* @throws \Throwable
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* @throws \yii\db\StaleObjectException
* 删除app
*/
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
...
@@ -95,6 +100,10 @@ class AppController extends BaseController
...
@@ -95,6 +100,10 @@ class AppController extends BaseController
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 上传
*/
public
function
actionUpload
()
public
function
actionUpload
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
...
backend/controllers/ApplicateRankController.php
View file @
69480593
...
@@ -16,6 +16,10 @@ use Yii;
...
@@ -16,6 +16,10 @@ use Yii;
class
ApplicateRankController
extends
BaseController
class
ApplicateRankController
extends
BaseController
{
{
/**
* @return array
* 应用排行榜添加
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -43,6 +47,10 @@ class ApplicateRankController extends BaseController
...
@@ -43,6 +47,10 @@ class ApplicateRankController extends BaseController
}
}
}
}
/**
* @return array
* 应用排行榜删除
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -79,6 +87,10 @@ class ApplicateRankController extends BaseController
...
@@ -79,6 +87,10 @@ class ApplicateRankController extends BaseController
return
$this
->
render
(
'index'
,[
'items'
=>
$items
]);
return
$this
->
render
(
'index'
,[
'items'
=>
$items
]);
}
}
/**
* @return array
* 应用排行榜设置排序
*/
public
function
actionSetSort
()
public
function
actionSetSort
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -101,6 +113,10 @@ class ApplicateRankController extends BaseController
...
@@ -101,6 +113,10 @@ class ApplicateRankController extends BaseController
}
}
}
}
/**
* @return array
* 添加热门搜索
*/
public
function
actionAddSearch
()
public
function
actionAddSearch
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -116,6 +132,10 @@ class ApplicateRankController extends BaseController
...
@@ -116,6 +132,10 @@ class ApplicateRankController extends BaseController
}
}
}
}
/**
* @return array
* 热门搜索列表
*/
public
function
actionSearchIndex
()
public
function
actionSearchIndex
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -132,6 +152,10 @@ class ApplicateRankController extends BaseController
...
@@ -132,6 +152,10 @@ class ApplicateRankController extends BaseController
}
}
}
}
/**
* @return array
* 热门搜索删除
*/
public
function
actionSearchDelete
()
public
function
actionSearchDelete
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -147,6 +171,10 @@ class ApplicateRankController extends BaseController
...
@@ -147,6 +171,10 @@ class ApplicateRankController extends BaseController
}
}
}
}
/**
* @return array
* 热门搜索设置排序
*/
public
function
actionSetSearchSort
()
public
function
actionSetSearchSort
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/ApplicateRecommendController.php
View file @
69480593
...
@@ -17,6 +17,10 @@ use Yii;
...
@@ -17,6 +17,10 @@ use Yii;
class
ApplicateRecommendController
extends
BaseController
class
ApplicateRecommendController
extends
BaseController
{
{
/**
* @return array
* 首页推荐添加
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -52,6 +56,10 @@ class ApplicateRecommendController extends BaseController
...
@@ -52,6 +56,10 @@ class ApplicateRecommendController extends BaseController
}
}
}
}
/**
* @return array
* 首页推荐删除
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -94,6 +102,10 @@ class ApplicateRecommendController extends BaseController
...
@@ -94,6 +102,10 @@ class ApplicateRecommendController extends BaseController
return
$this
->
render
(
'index'
);
return
$this
->
render
(
'index'
);
}
}
/**
* @return array
* 设置首页推荐排序
*/
public
function
actionSetSort
()
public
function
actionSetSort
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -116,6 +128,10 @@ class ApplicateRecommendController extends BaseController
...
@@ -116,6 +128,10 @@ class ApplicateRecommendController extends BaseController
}
}
}
}
/**
* @return array
* 设置首页推荐图标
*/
public
function
actionSetIcon
()
public
function
actionSetIcon
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
...
backend/controllers/ApplicationCategoryController.php
View file @
69480593
...
@@ -16,6 +16,10 @@ use Yii;
...
@@ -16,6 +16,10 @@ use Yii;
class
ApplicationCategoryController
extends
BaseController
class
ApplicationCategoryController
extends
BaseController
{
{
/**
* @return array|string|\yii\db\ActiveRecord[]
* 应用分类列表
*/
public
function
actionIndex
()
public
function
actionIndex
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -61,6 +65,7 @@ class ApplicationCategoryController extends BaseController
...
@@ -61,6 +65,7 @@ class ApplicationCategoryController extends BaseController
* @return array
* @return array
* @throws \Throwable
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* @throws \yii\db\StaleObjectException
* 应用分类删除
*/
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
...
@@ -74,6 +79,10 @@ class ApplicationCategoryController extends BaseController
...
@@ -74,6 +79,10 @@ class ApplicationCategoryController extends BaseController
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 应用分类设置排序
*/
public
function
actionSetSort
()
public
function
actionSetSort
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -95,6 +104,10 @@ class ApplicationCategoryController extends BaseController
...
@@ -95,6 +104,10 @@ class ApplicationCategoryController extends BaseController
}
}
}
}
/**
* @return array|string
* banner列表
*/
public
function
actionBannerIndex
()
public
function
actionBannerIndex
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
){
if
(
Yii
::
$app
->
request
->
isAjax
){
...
@@ -122,6 +135,10 @@ class ApplicationCategoryController extends BaseController
...
@@ -122,6 +135,10 @@ class ApplicationCategoryController extends BaseController
}
}
}
}
/**
* @return array
* 添加banner
*/
public
function
actionAddBanner
()
public
function
actionAddBanner
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
@@ -138,6 +155,10 @@ class ApplicationCategoryController extends BaseController
...
@@ -138,6 +155,10 @@ class ApplicationCategoryController extends BaseController
}
}
}
}
/**
* @return array
* 删除banner
*/
public
function
actionDeleteBanner
()
public
function
actionDeleteBanner
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
@@ -150,6 +171,10 @@ class ApplicationCategoryController extends BaseController
...
@@ -150,6 +171,10 @@ class ApplicationCategoryController extends BaseController
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 设置是否显示
*/
public
function
actionSetEnable
()
public
function
actionSetEnable
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/ApplicationController.php
View file @
69480593
...
@@ -45,6 +45,10 @@ class ApplicationController extends BaseController
...
@@ -45,6 +45,10 @@ class ApplicationController extends BaseController
}
}
}
}
/**
* @return string
* 添加应用
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
@@ -66,6 +70,10 @@ class ApplicationController extends BaseController
...
@@ -66,6 +70,10 @@ class ApplicationController extends BaseController
return
$this
->
render
(
'add'
);
return
$this
->
render
(
'add'
);
}
}
/**
* @return array|string
* 应用编辑
*/
public
function
actionEdit
()
public
function
actionEdit
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
...
@@ -124,6 +132,7 @@ class ApplicationController extends BaseController
...
@@ -124,6 +132,7 @@ class ApplicationController extends BaseController
* @return array
* @return array
* @throws \Throwable
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* @throws \yii\db\StaleObjectException
* 应用删除
*/
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
...
@@ -138,6 +147,10 @@ class ApplicationController extends BaseController
...
@@ -138,6 +147,10 @@ class ApplicationController extends BaseController
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 设置应用所属分类
*/
public
function
actionAddCategory
()
public
function
actionAddCategory
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
@@ -189,6 +202,10 @@ class ApplicationController extends BaseController
...
@@ -189,6 +202,10 @@ class ApplicationController extends BaseController
}
}
}
}
/**
* @return array
* 添加应用详情图片
*/
public
function
actionAddImage
()
public
function
actionAddImage
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
@@ -205,6 +222,10 @@ class ApplicationController extends BaseController
...
@@ -205,6 +222,10 @@ class ApplicationController extends BaseController
}
}
}
}
/**
* @return array
* 删除应用详情图片
*/
public
function
actionDeleteImage
()
public
function
actionDeleteImage
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
@@ -218,6 +239,10 @@ class ApplicationController extends BaseController
...
@@ -218,6 +239,10 @@ class ApplicationController extends BaseController
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 设置应用排序
*/
public
function
actionSetSort
()
public
function
actionSetSort
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -240,6 +265,10 @@ class ApplicationController extends BaseController
...
@@ -240,6 +265,10 @@ class ApplicationController extends BaseController
}
}
}
}
/**
* @return array
* 设置是否显示
*/
public
function
actionSetEnable
()
public
function
actionSetEnable
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -261,6 +290,10 @@ class ApplicationController extends BaseController
...
@@ -261,6 +290,10 @@ class ApplicationController extends BaseController
}
}
}
}
/**
* @return array
* 设置h5显示尺寸
*/
public
function
actionSetH5ImageShowtype
()
public
function
actionSetH5ImageShowtype
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/CoinBannerController.php
View file @
69480593
...
@@ -18,6 +18,10 @@ use Yii;
...
@@ -18,6 +18,10 @@ use Yii;
class
CoinBannerController
extends
BaseController
class
CoinBannerController
extends
BaseController
{
{
/**
* @return array
* banner添加
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -37,6 +41,10 @@ class CoinBannerController extends BaseController
...
@@ -37,6 +41,10 @@ class CoinBannerController extends BaseController
}
}
}
}
/**
* @return array
* banner删除
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/CoinController.php
View file @
69480593
...
@@ -25,6 +25,10 @@ use yii\web\UploadedFile;
...
@@ -25,6 +25,10 @@ use yii\web\UploadedFile;
*/
*/
class
CoinController
extends
BaseController
class
CoinController
extends
BaseController
{
{
/**
* @return array|string|\yii\db\ActiveRecord[]
* 币种列表
*/
public
function
actionIndex
()
public
function
actionIndex
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -68,6 +72,10 @@ class CoinController extends BaseController
...
@@ -68,6 +72,10 @@ class CoinController extends BaseController
return
$this
->
render
(
'index'
,
[
'platforms'
=>
$platforms
,
'chains'
=>
$chains
]);
return
$this
->
render
(
'index'
,
[
'platforms'
=>
$platforms
,
'chains'
=>
$chains
]);
}
}
/**
* @return string
* 币种添加
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
$model
=
new
CoinForm
();
$model
=
new
CoinForm
();
...
@@ -104,6 +112,10 @@ class CoinController extends BaseController
...
@@ -104,6 +112,10 @@ class CoinController extends BaseController
return
$this
->
render
(
'add'
,
[
'model'
=>
$model
]);
return
$this
->
render
(
'add'
,
[
'model'
=>
$model
]);
}
}
/**
* @return array|string
* 币种编辑
*/
public
function
actionEdit
()
public
function
actionEdit
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
...
@@ -185,6 +197,10 @@ class CoinController extends BaseController
...
@@ -185,6 +197,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array
* 币种删除
*/
public
function
actionDelete
()
public
function
actionDelete
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
@@ -223,6 +239,10 @@ class CoinController extends BaseController
...
@@ -223,6 +239,10 @@ class CoinController extends BaseController
return
[
'code'
=>
-
1
,
'msg'
=>
'删除失败'
];
return
[
'code'
=>
-
1
,
'msg'
=>
'删除失败'
];
}
}
/**
* @return string
* 获取币种行情
*/
public
function
actionGetExchangeListById
()
public
function
actionGetExchangeListById
()
{
{
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
0
);
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
0
);
...
@@ -234,6 +254,10 @@ class CoinController extends BaseController
...
@@ -234,6 +254,10 @@ class CoinController extends BaseController
return
$this
->
render
(
'exchange'
,
[
'exchanges'
=>
$exchanges
]);
return
$this
->
render
(
'exchange'
,
[
'exchanges'
=>
$exchanges
]);
}
}
/**
* @return array|string|\yii\db\ActiveRecord[]
* 币种库配置列表
*/
public
function
actionPackage
()
public
function
actionPackage
()
{
{
$user_platform_id
=
Yii
::
$app
->
user
->
identity
->
platform_id
;
$user_platform_id
=
Yii
::
$app
->
user
->
identity
->
platform_id
;
...
@@ -293,6 +317,10 @@ class CoinController extends BaseController
...
@@ -293,6 +317,10 @@ class CoinController extends BaseController
]);
]);
}
}
/**
* @return array
* 删除指定钱包币种
*/
public
function
actionPackageDel
()
public
function
actionPackageDel
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -337,6 +365,10 @@ class CoinController extends BaseController
...
@@ -337,6 +365,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array
* 添加指定钱包币种
*/
public
function
actionPackageAdd
()
public
function
actionPackageAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -379,6 +411,10 @@ class CoinController extends BaseController
...
@@ -379,6 +411,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array
* 复制币种到指定钱包
*/
public
function
actionPackageCopy
()
public
function
actionPackageCopy
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -410,6 +446,10 @@ class CoinController extends BaseController
...
@@ -410,6 +446,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array
* 批量删除指定钱包币种
*/
public
function
actionPackageBatchDel
()
public
function
actionPackageBatchDel
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -440,6 +480,10 @@ class CoinController extends BaseController
...
@@ -440,6 +480,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array|string
* 平台币图标列表
*/
public
function
actionPlatformCoin
()
public
function
actionPlatformCoin
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -461,6 +505,10 @@ class CoinController extends BaseController
...
@@ -461,6 +505,10 @@ class CoinController extends BaseController
return
$this
->
render
(
'platform_coin'
);
return
$this
->
render
(
'platform_coin'
);
}
}
/**
* @return array
* 添加平台币图标
*/
public
function
actionAddPlatformCoin
()
public
function
actionAddPlatformCoin
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
){
if
(
Yii
::
$app
->
request
->
isPost
){
...
@@ -475,6 +523,10 @@ class CoinController extends BaseController
...
@@ -475,6 +523,10 @@ class CoinController extends BaseController
}
}
}
}
/**
* @return array
* 设置区块链浏览器地址
*/
public
function
actionSetBrower
()
public
function
actionSetBrower
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/CoinPublishController.php
View file @
69480593
...
@@ -16,6 +16,10 @@ use common\models\psources\Coin;
...
@@ -16,6 +16,10 @@ use common\models\psources\Coin;
class
CoinPublishController
extends
BaseController
class
CoinPublishController
extends
BaseController
{
{
/**
* @return array|string|\yii\db\ActiveRecord[]
* 发币管理列表
*/
public
function
actionList
()
public
function
actionList
()
{
{
$is_show_button
=
false
;
$is_show_button
=
false
;
...
@@ -47,6 +51,10 @@ class CoinPublishController extends BaseController
...
@@ -47,6 +51,10 @@ class CoinPublishController extends BaseController
return
$this
->
render
(
'list'
,
[
'is_show_button'
=>
$is_show_button
]);
return
$this
->
render
(
'list'
,
[
'is_show_button'
=>
$is_show_button
]);
}
}
/**
* @return array|string
* 添加币种监控
*/
public
function
actionAdd
()
public
function
actionAdd
()
{
{
if
(
Yii
::
$app
->
request
->
isGet
)
{
if
(
Yii
::
$app
->
request
->
isGet
)
{
...
@@ -94,6 +102,13 @@ class CoinPublishController extends BaseController
...
@@ -94,6 +102,13 @@ class CoinPublishController extends BaseController
}
}
}
}
/**
* @return array
* @throws \Exception
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* 删除币种监控
*/
public
function
actionDel
()
public
function
actionDel
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
@@ -111,6 +126,10 @@ class CoinPublishController extends BaseController
...
@@ -111,6 +126,10 @@ class CoinPublishController extends BaseController
return
[
'code'
=>
-
1
,
'msg'
=>
'failed'
];
return
[
'code'
=>
-
1
,
'msg'
=>
'failed'
];
}
}
/**
* @return array
* 设置是否自动审核
*/
public
function
actionSetAutoCheck
()
public
function
actionSetAutoCheck
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
@@ -132,6 +151,10 @@ class CoinPublishController extends BaseController
...
@@ -132,6 +151,10 @@ class CoinPublishController extends BaseController
}
}
}
}
/**
* @return array
* 设置自动审核上限
*/
public
function
actionSetLimit
()
public
function
actionSetLimit
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/CoinPublishRuleController.php
View file @
69480593
...
@@ -50,6 +50,10 @@ class CoinPublishRuleController extends BaseController
...
@@ -50,6 +50,10 @@ class CoinPublishRuleController extends BaseController
return
$this
->
render
(
'index'
);
return
$this
->
render
(
'index'
);
}
}
/**
* @return array|string|\yii\db\ActiveRecord[]
* 锁仓规则列表
*/
public
function
actionList
()
public
function
actionList
()
{
{
$get
=
Yii
::
$app
->
request
->
get
();
$get
=
Yii
::
$app
->
request
->
get
();
...
@@ -98,6 +102,13 @@ class CoinPublishRuleController extends BaseController
...
@@ -98,6 +102,13 @@ class CoinPublishRuleController extends BaseController
]);
]);
}
}
/**
* @return array|string
* @throws \Exception
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* 创建锁仓规则
*/
public
function
actionSet
()
public
function
actionSet
()
{
{
if
(
Yii
::
$app
->
request
->
isGet
)
{
if
(
Yii
::
$app
->
request
->
isGet
)
{
...
@@ -168,6 +179,13 @@ class CoinPublishRuleController extends BaseController
...
@@ -168,6 +179,13 @@ class CoinPublishRuleController extends BaseController
}
}
}
}
/**
* @return array
* @throws \Exception
* @throws \Throwable
* @throws \yii\db\StaleObjectException
* 删除锁仓规则
*/
public
function
actionDel
()
public
function
actionDel
()
{
{
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
null
);
$id
=
Yii
::
$app
->
request
->
get
(
'id'
,
null
);
...
@@ -205,6 +223,10 @@ class CoinPublishRuleController extends BaseController
...
@@ -205,6 +223,10 @@ class CoinPublishRuleController extends BaseController
return
$query
[
'pid'
];
return
$query
[
'pid'
];
}
}
/**
* @return arraysho
* 获取币种下用户列表
*/
public
function
actionGetRememberList
()
public
function
actionGetRememberList
()
{
{
$mobile
=
Yii
::
$app
->
request
->
get
(
'mobile'
,
''
);
$mobile
=
Yii
::
$app
->
request
->
get
(
'mobile'
,
''
);
...
...
backend/controllers/CoinReleaseCheckController.php
View file @
69480593
...
@@ -161,6 +161,7 @@ class CoinReleaseCheckController extends BaseController
...
@@ -161,6 +161,7 @@ class CoinReleaseCheckController extends BaseController
/**
/**
* @return array
* @return array
* @throws \yii\db\Exception
* @throws \yii\db\Exception
* 提币审核
*/
*/
public
function
actionCheck
()
public
function
actionCheck
()
{
{
...
...
backend/controllers/CoinReleaseMemberController.php
View file @
69480593
...
@@ -91,7 +91,7 @@ class CoinReleaseMemberController extends BaseController
...
@@ -91,7 +91,7 @@ class CoinReleaseMemberController extends BaseController
}
}
/**
/**
* 名单导入
* 名单导入
(预览)
*/
*/
public
function
actionImplode
()
public
function
actionImplode
()
{
{
...
@@ -145,6 +145,10 @@ class CoinReleaseMemberController extends BaseController
...
@@ -145,6 +145,10 @@ class CoinReleaseMemberController extends BaseController
}
}
}
}
/**
* @return array
* 导入数据到数据库
*/
public
function
actionDataUpdate
()
public
function
actionDataUpdate
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
...
backend/controllers/ImageController.php
View file @
69480593
...
@@ -15,6 +15,10 @@ use yii\web\UploadedFile;
...
@@ -15,6 +15,10 @@ use yii\web\UploadedFile;
class
ImageController
extends
BaseController
class
ImageController
extends
BaseController
{
{
/**
* @return array
* 图片上传功能
*/
public
function
actionUpload
()
public
function
actionUpload
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
...
backend/controllers/MinerFeeController.php
View file @
69480593
...
@@ -140,6 +140,10 @@ class MinerFeeController extends BaseController
...
@@ -140,6 +140,10 @@ class MinerFeeController extends BaseController
$this
->
error
(
'删除失败'
,
Yii
::
$app
->
request
->
getReferrer
());
$this
->
error
(
'删除失败'
,
Yii
::
$app
->
request
->
getReferrer
());
}
}
/**
* @return array
* 更新托管钱包币种库
*/
public
function
actionUpdateCoin
()
public
function
actionUpdateCoin
()
{
{
Yii
::
$app
->
response
->
format
=
'json'
;
Yii
::
$app
->
response
->
format
=
'json'
;
...
@@ -171,6 +175,10 @@ class MinerFeeController extends BaseController
...
@@ -171,6 +175,10 @@ class MinerFeeController extends BaseController
}
}
}
}
/**
* @return array
* 设置托管钱包旷工费
*/
public
function
actionSetFee
()
public
function
actionSetFee
()
{
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
if
(
Yii
::
$app
->
request
->
isAjax
)
{
...
...
backend/controllers/WalletController.php
View file @
69480593
...
@@ -13,6 +13,10 @@ use Yii;
...
@@ -13,6 +13,10 @@ use Yii;
class
WalletController
extends
BaseController
class
WalletController
extends
BaseController
{
{
/**
* @return string
* 设置钱包密码
*/
public
function
actionSetPasswd
()
public
function
actionSetPasswd
()
{
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
...
...
h5/controllers/ApplicationController.php
View file @
69480593
...
@@ -22,6 +22,10 @@ use Yii;
...
@@ -22,6 +22,10 @@ use Yii;
*/
*/
class
ApplicationController
extends
BaseController
class
ApplicationController
extends
BaseController
{
{
/**
* @return ResponseBuild
* 探索模块首页
*/
public
function
actionIndex
()
public
function
actionIndex
()
{
{
$response_
=
new
ResponseBuild
();
$response_
=
new
ResponseBuild
();
...
...
h5/controllers/CoinController.php
View file @
69480593
...
@@ -22,6 +22,10 @@ use h5\base\BaseController;
...
@@ -22,6 +22,10 @@ use h5\base\BaseController;
*/
*/
class
CoinController
extends
BaseController
class
CoinController
extends
BaseController
{
{
/**
* @return ResponseBuild
* 根据币种名称获取图标
*/
public
function
actionGetIconByNames
()
public
function
actionGetIconByNames
()
{
{
$response_
=
new
ResponseBuild
();
$response_
=
new
ResponseBuild
();
...
@@ -42,6 +46,10 @@ class CoinController extends BaseController
...
@@ -42,6 +46,10 @@ class CoinController extends BaseController
return
$response_
;
return
$response_
;
}
}
/**
* @return ResponseBuild
* 根据币种名称获取币种详情
*/
public
function
actionCoinInfoByNames
()
public
function
actionCoinInfoByNames
()
{
{
$response_
=
new
ResponseBuild
();
$response_
=
new
ResponseBuild
();
...
...
h5/controllers/GuodunController.php
View file @
69480593
...
@@ -22,6 +22,10 @@ use common\models\psources\CoinPublish;
...
@@ -22,6 +22,10 @@ use common\models\psources\CoinPublish;
class
GuodunController
extends
BaseController
class
GuodunController
extends
BaseController
{
{
/**
* @return ResponseBuild
* 用户资产
*/
public
function
actionGetUserAssets
()
public
function
actionGetUserAssets
()
{
{
$post
=
Yii
::
$app
->
request
->
post
();
$post
=
Yii
::
$app
->
request
->
post
();
...
@@ -169,6 +173,10 @@ class GuodunController extends BaseController
...
@@ -169,6 +173,10 @@ class GuodunController extends BaseController
return
$response
;
return
$response
;
}
}
/**
* @return ResponseBuild
* 提币/锁仓释放 列表
*/
public
function
actionBillList
()
public
function
actionBillList
()
{
{
$response
=
new
ResponseBuild
();
$response
=
new
ResponseBuild
();
...
...
h5/controllers/LotteryController.php
View file @
69480593
...
@@ -32,6 +32,10 @@ class LotteryController extends BaseController
...
@@ -32,6 +32,10 @@ class LotteryController extends BaseController
return
$response_
;
return
$response_
;
}
}
/**
* @return ResponseBuild
* 新时时彩最近一期详情
*/
public
function
actionNewLotteryInfo
()
public
function
actionNewLotteryInfo
()
{
{
$lottery_config
=
Yii
::
$app
->
params
[
'lottery'
];
$lottery_config
=
Yii
::
$app
->
params
[
'lottery'
];
...
...
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