소스 검색

团队查询周二也显示

kevin 2 년 전
부모
커밋
5605ccc899
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frontendApi/modules/v1/controllers/BonusController.php

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

@@ -123,9 +123,9 @@ class BonusController extends BaseController {
         //特殊要求,测试环境要去掉是否是周日的判断,周一至周日都能看
         if($preparePerfLimit === true && $isCalcMonth != 1) {
             return static::notice(['user' => [],'team'=>[]]);
-        } else if ($preparePerfLimit !== true && (($w != '0' && $w != '1') || $isCalcMonth != 1)) {
+        } else if ($preparePerfLimit !== true && (($w != '0' && $w != '1' && $w != '2') || $isCalcMonth != 1)) {
             return static::notice(['user' => [],'team'=>[]]);
-        } else if ($preparePerfLimit !== true && (($w == '0' || $w == '1') || $isCalcMonth != 1)) {
+        } else if ($preparePerfLimit !== true && (($w == '0' || $w == '1' && $w != '2') || $isCalcMonth != 1)) {
             if ($newMonth && $w != '1'){
                 return static::notice(['user' => [],'team'=>[]]);
             }