|
|
@@ -432,12 +432,12 @@ class FinanceController extends BaseController {
|
|
|
$userName = Info::getUserNameByUserId($k);
|
|
|
// Log::adminHandle('为会员' . $userName . '的提现流水号为' . $value . '改变提现状态至' . Withdraw::STATUS_NAME[$result['status']], 1, $k, $userName);
|
|
|
}
|
|
|
- return static::notice('Status setting succeeded'); // 状态设置成功
|
|
|
+ return static::notice(Yii::t('ctx', 'statusSettingSucceeded')); // 状态设置成功
|
|
|
} else {
|
|
|
return static::notice(Form::formatErrorsForApi($formModel->getErrors()), 400);
|
|
|
}
|
|
|
}
|
|
|
- return static::notice('Illegal request', 400); // 非法请求
|
|
|
+ return static::notice(Yii::t('ctx', 'illegalRequest'), 400); // 非法请求
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -475,7 +475,7 @@ class FinanceController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
$form = new FinanceExportForm();
|
|
|
- $result = $form->run($filter, 'Withdraw_Apply'); // 提现申请
|
|
|
+ $result = $form->run($filter, Yii::t('ctx', 'exportWithdrawApplyExcelName')); // 提现申请
|
|
|
if (!$result) {
|
|
|
return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
}
|
|
|
@@ -509,7 +509,7 @@ class FinanceController extends BaseController {
|
|
|
} elseif ($result === 0) {
|
|
|
return static::notice(['finish' => true]);
|
|
|
} else {
|
|
|
- return static::notice('Error:' . $errorMsg, 400);
|
|
|
+ return static::notice('Error:' . $errorMsg, 400);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -539,7 +539,7 @@ class FinanceController extends BaseController {
|
|
|
} elseif ($result === 0) {
|
|
|
return static::notice(['finish' => true]);
|
|
|
} else {
|
|
|
- return static::notice('error:' . $errorMsg, 400);
|
|
|
+ return static::notice('error:' . $errorMsg, 400);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -591,7 +591,7 @@ class FinanceController extends BaseController {
|
|
|
*/
|
|
|
public function actionInvoiceAuditAdd() {
|
|
|
if (Yii::$app->request->isPost) {
|
|
|
- return parent::edit(InvoiceAuditForm::class, '发票录入成功', 'addByAdmin', ['addByAdmin'], null, function ($form, $result) {
|
|
|
+ return parent::edit(InvoiceAuditForm::class, Yii::t('ctx', 'invoiceEnteredSuccessfully'), 'addByAdmin', ['addByAdmin'], null, function ($form, $result) {
|
|
|
$user = User::getBaseInfoFromRedis($result['USER_ID']);
|
|
|
// Log::adminHandle('申请为' . $user['USER_NAME'] . '发票录入', 1, $result['USER_ID'], $user['USER_NAME']);
|
|
|
});
|
|
|
@@ -631,7 +631,7 @@ class FinanceController extends BaseController {
|
|
|
if ($formModel->load(Yii::$app->request->post(), '') && $result = $formModel->editByAdmin()) {
|
|
|
$user = User::getBaseInfoFromRedis($result['USER_ID']);
|
|
|
// Log::adminHandle('修改' . $user['USER_NAME'] . '发票录入数据', 1, $result['USER_ID'], $user['USER_NAME']);
|
|
|
- return static::notice('修改发票录入数据完成');
|
|
|
+ return static::notice(Yii::t('ctx', 'modifyInvoiceEntryCompleted'));
|
|
|
}
|
|
|
return static::notice(Form::formatErrorsForApi($formModel->getErrors()), 400);
|
|
|
}
|
|
|
@@ -648,7 +648,7 @@ class FinanceController extends BaseController {
|
|
|
if ($formModel->load(Yii::$app->request->post(), '') && $result = $formModel->audit()) {
|
|
|
$user = User::getBaseInfoFromRedis($result['USER_ID']);
|
|
|
// Log::adminHandle('审核' . $user['USER_NAME'] . '发票录入数据', 1, $result['USER_ID'], $user['USER_NAME']);
|
|
|
- return static::notice('审核发票数据完成');
|
|
|
+ return static::notice(Yii::t('ctx', 'reviewInvoiceDataCompleted'));
|
|
|
}
|
|
|
return static::notice(Form::formatErrorsForApi($formModel->getErrors()), 400);
|
|
|
}
|