作者 王智

修改

... ... @@ -173,7 +173,8 @@ class Content extends Api
$end_time = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')) - 1;
$map['createtime'] = ['between', [$start_time, $end_time]];
$InInfo = Db::name('index_water')->where($map)->where('user_id', $UserId)->find();
if (empty($InInfo)) {
// if (empty($InInfo)) {
if (1 == 1) {
$Image1 = Db::name('water_paper')->where('id', 1)->find();
$Image = cdnurl($Image1['image']);
$data = [
... ... @@ -184,7 +185,7 @@ class Content extends Api
} else {
$Image = '';
}
}else{
} else {
$Image1 = Db::name('water_paper')->where('id', 1)->find();
$Image = cdnurl($Image1['image']);
}
... ... @@ -192,7 +193,8 @@ class Content extends Api
}
public function DeleteWater()
public
function DeleteWater()
{
Db::name('index_water')->where('id', 'neq', 0)->delete();
}
... ...