Quellcode durchsuchen

测试团队查询数据

kevin_zhangl vor 3 Jahren
Ursprung
Commit
028ffe7bfd
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      frontendApi/modules/v1/controllers/BonusController.php

+ 5 - 5
frontendApi/modules/v1/controllers/BonusController.php

@@ -114,8 +114,8 @@ class BonusController extends BaseController {
     public function actionTeams() {
         $userId = \Yii::$app->user->id;
         $period = Period::instance();
-        $periodNum = $period->getNowPeriodNum();
-        $month = $period->getNowYearMonth();
+        $periodNum = 108;
+        $month = '202212';
         // 判断此业绩期是否已经完成生成了预计算业绩单,生成完毕才能看到
         $isPerfed = Period::checkPerf($periodNum);
         if (!$isPerfed) {
@@ -124,9 +124,9 @@ class BonusController extends BaseController {
         // 判断当前时间,是否临近封期,否则隐藏
         $nowTs = time();
         $currentPeriodEnd = Period::getEndTime($periodNum);
-        if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs || ($periodNum % 2)) {
-            return static::notice(['user' => [],'team'=>[]]);
-        }
+//        if ($nowTs + 432000 <= $currentPeriodEnd || $currentPeriodEnd < $nowTs || ($periodNum % 2)) {
+//            return static::notice(['user' => [],'team'=>[]]);
+//        }
         $userInfo = User::getEnCodeInfo($userId);
         $data = PerfMonth::fetchMonthPerf($month, $userId);
         $user[0] = [