...
|
...
|
@@ -10960,7 +10960,6 @@ class Algorithm extends Api |
|
|
{
|
|
|
//获取用户出生年份
|
|
|
$UserYear = date('Y', $TimeStamp);
|
|
|
dump($UserYear);
|
|
|
//季节时段六个配置时间戳
|
|
|
$FirstStar = strtotime(date($UserYear . '-1-21'));
|
|
|
$FirstEnd = strtotime(date($UserYear . '-3-20'));
|
...
|
...
|
@@ -10974,9 +10973,7 @@ class Algorithm extends Api |
|
|
$FifthEnd = strtotime(date($UserYear . '-11-20'));
|
|
|
$SixthStar = strtotime(date($UserYear . '-11-21'));
|
|
|
$SixthEnd = strtotime(date($UserYear + 1 . '-1-20'));
|
|
|
dump($TimeStamp);
|
|
|
dump($SixthStar);
|
|
|
dump($SixthEnd);
|
|
|
if ($TimeStamp > 1) {
|
|
|
if ($TimeStamp > $FirstStar && $TimeStamp < $FirstEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 3,
|
...
|
...
|
@@ -11014,6 +11011,45 @@ class Algorithm extends Api |
|
|
'K' => 1
|
|
|
];
|
|
|
}
|
|
|
} else {
|
|
|
if ($TimeStamp < $FirstStar && $TimeStamp > $FirstEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 3,
|
|
|
'P' => 1,
|
|
|
'K' => 2
|
|
|
];
|
|
|
} elseif ($TimeStamp < $SecondStar && $TimeStamp > $SecondEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 1,
|
|
|
'P' => 1,
|
|
|
'K' => 3
|
|
|
];
|
|
|
} elseif ($TimeStamp < $ThirdStar && $TimeStamp > $ThirdEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 3,
|
|
|
'P' => 1,
|
|
|
'K' => 1
|
|
|
];
|
|
|
} elseif ($TimeStamp < $FourthStar && $TimeStamp > $FourthEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 3,
|
|
|
'P' => 2,
|
|
|
'K' => 1
|
|
|
];
|
|
|
} elseif ($TimeStamp < $FifthStar && $TimeStamp > $FifthEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 1,
|
|
|
'P' => 3,
|
|
|
'K' => 1
|
|
|
];
|
|
|
} elseif ($TimeStamp < $SixthStar && $TimeStamp > $SixthEnd) {
|
|
|
$EighthVPK = [
|
|
|
'V' => 3,
|
|
|
'P' => 1,
|
|
|
'K' => 1
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
return $EighthVPK;
|
|
|
}
|
|
|
|
...
|
...
|
|