|
@@ -296,7 +296,7 @@ class Lave extends Api
|
|
|
foreach ($list as $k => $v) {
|
|
|
$day = intval(date('d', $v['createtime']));
|
|
|
$date = date('Y-m', $v['createtime']);
|
|
|
- $last=date("t", time());
|
|
|
+ $last=intval(date("t", time()));
|
|
|
|
|
|
$today = intval(date('d'));
|
|
|
$now_date = date('Y-m', time());
|
|
@@ -306,9 +306,16 @@ class Lave extends Api
|
|
|
|
|
|
|
|
|
|
|
|
+ $tf=false;
|
|
|
+ if($day==1&&$today==$last){
|
|
|
+ $tf=true;
|
|
|
+ }
|
|
|
+ if ($day-1>$last&&$today==$last){
|
|
|
+ $tf=true;
|
|
|
+ }
|
|
|
if ($date != $now_date) {
|
|
|
|
|
|
- if ($today == $day||$today==$last) {
|
|
|
+ if ($today == $day-1||$tf) {
|
|
|
|
|
|
$cid=$v['cid'];
|
|
|
|