|
|
@@ -214,12 +214,12 @@ class UserController extends BaseController {
|
|
|
->one();
|
|
|
$isOpen = !empty($isSwitchUpgrade) && isset($isSwitchUpgrade['VALUE']) ? $isSwitchUpgrade['VALUE'] : 0;
|
|
|
if ($isOpen < 1) {
|
|
|
- return static::notice('功能暂未开放',400);
|
|
|
+ return static::notice('The function is not available',400); // 功能暂未开放
|
|
|
}
|
|
|
$userNumber = \Yii::$app->request->request('userName');
|
|
|
$baseInfo = Info::baseInfoZhByUserName($userNumber);
|
|
|
if ($baseInfo['STATUS'] != 1) {
|
|
|
- return static::notice('非激活用户,请联系客服',400);
|
|
|
+ return static::notice('Inactive user. Please contact customer service.',400);// 非激活用户,请联系客服
|
|
|
}
|
|
|
// 1. 如果是最高级别,则只显示用户基本信息
|
|
|
// 2. 如果不是最高级别,如果用户累计报单数据是0, 或者用户累计报单业绩不符合级别信息,则提示 请联系客服核对业绩
|
|
|
@@ -264,10 +264,10 @@ class UserController extends BaseController {
|
|
|
$nextLevelPerf = DeclarationLevel::getNextDecPref($levelPerf)['PERF'];
|
|
|
// 如果总和超过了下一级业绩
|
|
|
if ($userDecPvSum >= $nextLevelPerf) {
|
|
|
- return static::notice('请联系客服人员核对业绩',400);
|
|
|
+ return static::notice('Please contact customer service to check performance.',400);// 请联系客服人员核对业绩
|
|
|
}
|
|
|
$type = $isObserve ? 1 : 2;
|
|
|
- $userInfo['UPGRADE_FUNC'] = $isObserve ? '补差额升级' : '全额升级';// 升级方式
|
|
|
+ $userInfo['UPGRADE_FUNC'] = $isObserve ? 'filling up of a deficit' : 'full payment';// 升级方式
|
|
|
$upgradeType = UpgradeType::getOneByType($type);
|
|
|
// 如果用户不是最大级别,则需要获取是否观察期,算出PV是否有问题,应该补多少,
|
|
|
$userInfo['UPGRADE_TYPE'] = $upgradeType;
|