|
@@ -135,7 +135,9 @@ class Index extends Api
|
|
|
}
|
|
|
|
|
|
Record::where('time', ">=", $beginYesterday)
|
|
|
- ->where("time", '<', $endYesterday)->delete();
|
|
|
+ ->where("time", '<', $endYesterday)
|
|
|
+ ->where('status', 1)
|
|
|
+ ->delete();
|
|
|
Db::commit();
|
|
|
// $beginYesterday=mktime(0,0,0,date('m'),date('d')-1,date('Y'));
|
|
|
// $userlink = db('userlink')->select();
|