- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
53 lines
1.1 KiB
PHP
Executable File
53 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
namespace app\admin\controller\user;
|
|
|
|
use app\common\controller\Backend;
|
|
|
|
/**
|
|
* 会员组管理
|
|
*
|
|
* @icon fa fa-users
|
|
*/
|
|
class Group extends Backend
|
|
{
|
|
|
|
/**
|
|
* @var \app\admin\model\UserGroup
|
|
*/
|
|
protected $model = null;
|
|
|
|
public function _initialize()
|
|
{
|
|
parent::_initialize();
|
|
$this->model = model('UserGroup');
|
|
$this->view->assign("statusList", $this->model->getStatusList());
|
|
}
|
|
|
|
public function add()
|
|
{
|
|
if ($this->request->isPost()) {
|
|
$this->token();
|
|
}
|
|
$nodeList = \app\admin\model\UserRule::getTreeList();
|
|
$this->assign("nodeList", $nodeList);
|
|
return parent::add();
|
|
}
|
|
|
|
public function edit($ids = null)
|
|
{
|
|
if ($this->request->isPost()) {
|
|
$this->token();
|
|
}
|
|
$row = $this->model->get($ids);
|
|
if (!$row) {
|
|
$this->error(__('No Results were found'));
|
|
}
|
|
$rules = explode(',', $row['rules']);
|
|
$nodeList = \app\admin\model\UserRule::getTreeList($rules);
|
|
$this->assign("nodeList", $nodeList);
|
|
return parent::edit($ids);
|
|
}
|
|
|
|
}
|