优化周一定时器

master
chenzhi 4 years ago
parent 4c4a2c0b22
commit 089390376c

@ -599,7 +599,9 @@ class MarketPerformanceSetController extends Controller {
$dThisDay = date("w", $iThisMonthFirst); $dThisDay = date("w", $iThisMonthFirst);
if ($dThisDay == '1') { if ($dThisDay == '1') {
$dFirstMonday = $iThisMonthFirst; $dFirstMonday = $iThisMonthFirst;
} else { }else if($dThisDay < 1){
$dFirstMonday = $iThisMonthFirst + 86400;
}else {
//不是星期一先回到星期日 //不是星期一先回到星期日
$iDays = 86400 * ($dThisDay * 1); $iDays = 86400 * ($dThisDay * 1);
//找出星期日的日期 //找出星期日的日期

Loading…
Cancel
Save