Commit 69480593 authored by ZhuChunYang's avatar ZhuChunYang

添加注释

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