Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
fix run_id bug if the last user closed the sign notice .
  • Loading branch information
quericy committed Jan 21, 2017
1 parent cc60d88 commit 8e11f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cron_quericy_sign_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function cron_quericy_sign_mail()
}
if ($is_open == false) {
//global and user setting comprehensive check,no send
option::set('quericy_sign_mail_run_id', $ii);
continue;
}
//deal user template
Expand All @@ -76,9 +77,8 @@ function cron_quericy_sign_mail()
}

//complete,reset counter
if (option::get('quericy_sign_mail_run_id') >= $max_id) {
option::set('quericy_sign_mail_run_id', 0);
}
option::set('quericy_sign_mail_run_id', 0);

option::set('quericy_sign_mail_last_date', date('Y-m-d'));
$log .= date("Y-m-d H:i:s") . " 签到邮件通知执行结束,共计发送邮件:" . $send_mail_count . "封,发送成功" . $send_success_count . "" . PHP_EOL;
option::set('quericy_sign_mail_log', $log);
Expand Down

0 comments on commit 8e11f06

Please sign in to comment.