|
|
@@ -352,7 +352,7 @@ class BonusController extends BaseController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 会员余额流水
|
|
|
+ * 会员余额流水
|
|
|
* @return mixed
|
|
|
* @throws \yii\base\Exception
|
|
|
* @throws HttpException
|
|
|
@@ -847,9 +847,8 @@ class BonusController extends BaseController {
|
|
|
}
|
|
|
$data = $this->_periodBonus($periodNum,false);
|
|
|
if( isset($data['filterTypes']) && is_array($data['filterTypes']) ) {
|
|
|
- $data['filterTypes'] = array_merge(['periodNum'=>['isUserTable'=> false, 'name'=> 'Pay Cycle(PC)']], $data['filterTypes']);
|
|
|
+ $data['filterTypes'] = array_merge(['periodNum'=>['isUserTable'=> false, 'name'=> \Yii::t('ctx', 'payCycle')]], $data['filterTypes']);
|
|
|
}
|
|
|
-
|
|
|
return static::notice($data);
|
|
|
}
|
|
|
|
|
|
@@ -921,7 +920,7 @@ class BonusController extends BaseController {
|
|
|
public function actionOtherPeriodBonusFilterTypes(){
|
|
|
$listObj = new PeriodBonusList();
|
|
|
$filterTypes = $listObj->getFilterTypes();
|
|
|
- $filterTypes = array_merge(['periodNum'=>['isUserTable'=> false, 'name'=> '结算期数']], $filterTypes);
|
|
|
+ $filterTypes = array_merge(['periodNum'=>['isUserTable'=> false, 'name'=> \Yii::t('ctx', 'payCycle')]], $filterTypes);
|
|
|
return static::notice($filterTypes);
|
|
|
}
|
|
|
|
|
|
@@ -997,9 +996,9 @@ class BonusController extends BaseController {
|
|
|
*/
|
|
|
public function actionTraceDownQy() {
|
|
|
$periodNum = Yii::$app->request->get('periodNum');
|
|
|
- if (!$periodNum) return static::notice('请填写期数', 400);
|
|
|
+ if (!$periodNum) return static::notice(\Yii::t('ctx', 'requirePeriods'), 400);
|
|
|
$userName = Yii::$app->request->get('userName');
|
|
|
- if (!$userName) return static::notice('请填写会员编号', 400);
|
|
|
+ if (!$userName) return static::notice(\Yii::t('ctx', 'requireMemberNumber'), 400);
|
|
|
$period = Period::instance();
|
|
|
if (!$period->isCalculated($periodNum)) {
|
|
|
return static::notice([]);
|
|
|
@@ -1989,7 +1988,7 @@ class BonusController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 区域津贴补发列表导出
|
|
|
+ * 区域津贴补发列表导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
* @throws HttpException
|
|
|
@@ -2842,4 +2841,4 @@ class BonusController extends BaseController {
|
|
|
return static::notice('Illegal request', 400); // 非法请求
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|