作者 王智

文档修改

@@ -10960,7 +10960,6 @@ class Algorithm extends Api @@ -10960,7 +10960,6 @@ class Algorithm extends Api
10960 { 10960 {
10961 //获取用户出生年份 10961 //获取用户出生年份
10962 $UserYear = date('Y', $TimeStamp); 10962 $UserYear = date('Y', $TimeStamp);
10963 - dump($UserYear);  
10964 //季节时段六个配置时间戳 10963 //季节时段六个配置时间戳
10965 $FirstStar = strtotime(date($UserYear . '-1-21')); 10964 $FirstStar = strtotime(date($UserYear . '-1-21'));
10966 $FirstEnd = strtotime(date($UserYear . '-3-20')); 10965 $FirstEnd = strtotime(date($UserYear . '-3-20'));
@@ -10974,9 +10973,7 @@ class Algorithm extends Api @@ -10974,9 +10973,7 @@ class Algorithm extends Api
10974 $FifthEnd = strtotime(date($UserYear . '-11-20')); 10973 $FifthEnd = strtotime(date($UserYear . '-11-20'));
10975 $SixthStar = strtotime(date($UserYear . '-11-21')); 10974 $SixthStar = strtotime(date($UserYear . '-11-21'));
10976 $SixthEnd = strtotime(date($UserYear + 1 . '-1-20')); 10975 $SixthEnd = strtotime(date($UserYear + 1 . '-1-20'));
10977 - dump($TimeStamp);  
10978 - dump($SixthStar);  
10979 - dump($SixthEnd); 10976 + if ($TimeStamp > 1) {
10980 if ($TimeStamp > $FirstStar && $TimeStamp < $FirstEnd) { 10977 if ($TimeStamp > $FirstStar && $TimeStamp < $FirstEnd) {
10981 $EighthVPK = [ 10978 $EighthVPK = [
10982 'V' => 3, 10979 'V' => 3,
@@ -11014,6 +11011,45 @@ class Algorithm extends Api @@ -11014,6 +11011,45 @@ class Algorithm extends Api
11014 'K' => 1 11011 'K' => 1
11015 ]; 11012 ];
11016 } 11013 }
  11014 + } else {
  11015 + if ($TimeStamp < $FirstStar && $TimeStamp > $FirstEnd) {
  11016 + $EighthVPK = [
  11017 + 'V' => 3,
  11018 + 'P' => 1,
  11019 + 'K' => 2
  11020 + ];
  11021 + } elseif ($TimeStamp < $SecondStar && $TimeStamp > $SecondEnd) {
  11022 + $EighthVPK = [
  11023 + 'V' => 1,
  11024 + 'P' => 1,
  11025 + 'K' => 3
  11026 + ];
  11027 + } elseif ($TimeStamp < $ThirdStar && $TimeStamp > $ThirdEnd) {
  11028 + $EighthVPK = [
  11029 + 'V' => 3,
  11030 + 'P' => 1,
  11031 + 'K' => 1
  11032 + ];
  11033 + } elseif ($TimeStamp < $FourthStar && $TimeStamp > $FourthEnd) {
  11034 + $EighthVPK = [
  11035 + 'V' => 3,
  11036 + 'P' => 2,
  11037 + 'K' => 1
  11038 + ];
  11039 + } elseif ($TimeStamp < $FifthStar && $TimeStamp > $FifthEnd) {
  11040 + $EighthVPK = [
  11041 + 'V' => 1,
  11042 + 'P' => 3,
  11043 + 'K' => 1
  11044 + ];
  11045 + } elseif ($TimeStamp < $SixthStar && $TimeStamp > $SixthEnd) {
  11046 + $EighthVPK = [
  11047 + 'V' => 3,
  11048 + 'P' => 1,
  11049 + 'K' => 1
  11050 + ];
  11051 + }
  11052 + }
11017 return $EighthVPK; 11053 return $EighthVPK;
11018 } 11054 }
11019 11055