Commit 44c34037 authored by shajiaiming's avatar shajiaiming

验证钱包

parent d439c3b9
...@@ -132,6 +132,10 @@ class UserController extends BaseController ...@@ -132,6 +132,10 @@ class UserController extends BaseController
$platform_id = Yii::$app->request->get('platform_id', 1); $platform_id = Yii::$app->request->get('platform_id', 1);
} }
if(!isset(Yii::$app->params['trusteeship']['port'][$platform_id])){
return ['code' => -1, 'data' => [], 'msg' => '此钱包节点尚未开通'];
}
$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'],
......
...@@ -37,7 +37,9 @@ class WalletController extends BaseController ...@@ -37,7 +37,9 @@ class WalletController extends BaseController
} else { } else {
$platform_id = Yii::$app->request->get('platform_id', 1); $platform_id = Yii::$app->request->get('platform_id', 1);
} }
if(!isset(Yii::$app->params['trusteeship']['port'][$platform_id])){
return ['code' => -1, 'data' => [], 'msg' => '此钱包节点尚未开通'];
}
$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