|
|
@@ -51,7 +51,7 @@ class AtlasController extends BaseController {
|
|
|
$deep = Yii::$app->request->get('deep', 2);
|
|
|
$periodNum = Yii::$app->request->get('periodNum', null);
|
|
|
if ($deep > 23) {
|
|
|
- return static::notice('Top 23 sub members of members can be viewed at most', 400);//最多查看会员的前23层子会员
|
|
|
+ return static::notice(Yii::t('ctx', 'atlasViewLimitNotice'), 400);//最多查看会员的前23层子会员
|
|
|
}
|
|
|
$allData = UserRelation::getChildrenWithDeepAndLayer($userId, $deep, 1, $periodNum);
|
|
|
return static::notice(['allData' => $allData, 'periodNum' => $periodNum]);
|
|
|
@@ -72,7 +72,8 @@ class AtlasController extends BaseController {
|
|
|
if ($userName !== '') {
|
|
|
//$oneUser = Info::getUserByUserNameFromUserInfoTable($userName);
|
|
|
if (!$userId = Info::getUserIdByUserName($userName)) {
|
|
|
- return static::notice('Member does not exist', 400); // 会员不存在
|
|
|
+
|
|
|
+ return static::notice(Yii::t('ctx', 'memberDoesNotExist'), 400); // 会员不存在
|
|
|
}
|
|
|
} else {
|
|
|
$userId = Yii::$app->params['mainUserId'];
|
|
|
@@ -118,7 +119,7 @@ class AtlasController extends BaseController {
|
|
|
$userId = Yii::$app->params['mainUserId'];
|
|
|
} else {
|
|
|
if (!$userId = Info::getUserIdByUserName($userName)) {
|
|
|
- return static::notice('Member does not exist', 400);//会员不存在
|
|
|
+ return static::notice(Yii::t('ctx', 'memberDoesNotExist'), 400);//会员不存在
|
|
|
}
|
|
|
}
|
|
|
$listObj = new RelationList();
|
|
|
@@ -141,7 +142,7 @@ class AtlasController extends BaseController {
|
|
|
$userId = Yii::$app->params['mainUserId'];
|
|
|
} else {
|
|
|
if (!$userId = Info::getUserIdByUserName($userName)) {
|
|
|
- return static::notice('Member does not exist', 400); // 会员不存在
|
|
|
+ return static::notice(Yii::t('ctx', 'memberDoesNotExist'), 400); // 会员不存在
|
|
|
}
|
|
|
}
|
|
|
$form = new AtlasExportForm();
|
|
|
@@ -162,7 +163,7 @@ class AtlasController extends BaseController {
|
|
|
$periodNum = Yii::$app->request->get('periodNum', null);
|
|
|
$deep = Yii::$app->request->get('deep', 2);
|
|
|
if ($deep > 20) {
|
|
|
- return static::notice('View the top 20 sub members of the member at most', 400);//最多查看会员的前20层子会员
|
|
|
+ return static::notice(Yii::t('ctx', 'atlasNetworkViewLimitNotice'), 400);//最多查看会员的前20层子会员
|
|
|
}
|
|
|
$allData = UserNetwork::getChildrenWithDeepAndLayer($userId, $deep, 1, $periodNum);
|
|
|
return static::notice(['allData' => $allData, 'periodNum' => $periodNum]);
|
|
|
@@ -183,7 +184,7 @@ class AtlasController extends BaseController {
|
|
|
$userId = Yii::$app->params['mainUserId'];
|
|
|
} else {
|
|
|
if (!$userId = Info::getUserIdByUserName($userName)) {
|
|
|
- return static::notice('Member does not exist', 400);//会员不存在
|
|
|
+ return static::notice(Yii::t('ctx', 'memberDoesNotExist'), 400);//会员不存在
|
|
|
}
|
|
|
}
|
|
|
$listObj = new NetworkList();
|
|
|
@@ -206,7 +207,7 @@ class AtlasController extends BaseController {
|
|
|
$userId = Yii::$app->params['mainUserId'];
|
|
|
} else {
|
|
|
if (!$userId = Info::getUserIdByUserName($userName)) {
|
|
|
- return static::notice('Member does not exist', 400); // 会员不存在
|
|
|
+ return static::notice(Yii::t('ctx', 'memberDoesNotExist'), 400); // 会员不存在
|
|
|
}
|
|
|
}
|
|
|
$form = new AtlasExportForm();
|