Commit d439c3b9 authored by shajiaiming's avatar shajiaiming

调整权限

parent b5bc554f
...@@ -125,7 +125,13 @@ class UserController extends BaseController ...@@ -125,7 +125,13 @@ class UserController extends BaseController
*/ */
public function actionUserList() public function actionUserList()
{ {
$platform_id = Yii::$app->request->getPlatformId(); $current_platform_id = Yii::$app->request->getPlatformId();
if(1 !== $current_platform_id) {
$platform_id = $current_platform_id;
} else {
$platform_id = Yii::$app->request->get('platform_id', 1);
}
$node_params = [ $node_params = [
'scheme' => Yii::$app->params['trusteeship']['scheme'], 'scheme' => Yii::$app->params['trusteeship']['scheme'],
'host' => Yii::$app->params['trusteeship']['host'], 'host' => Yii::$app->params['trusteeship']['host'],
......
...@@ -31,7 +31,13 @@ class WalletController extends BaseController ...@@ -31,7 +31,13 @@ class WalletController extends BaseController
public function actionWalletBallance() public function actionWalletBallance()
{ {
$platform_id = Yii::$app->request->getPlatformId(); $current_platform_id = Yii::$app->request->getPlatformId();
if(1 !== $current_platform_id) {
$platform_id = $current_platform_id;
} else {
$platform_id = Yii::$app->request->get('platform_id', 1);
}
$node_params = [ $node_params = [
'scheme' => Yii::$app->params['trusteeship']['scheme'], 'scheme' => Yii::$app->params['trusteeship']['scheme'],
'host' => Yii::$app->params['trusteeship']['host'], 'host' => Yii::$app->params['trusteeship']['host'],
......
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