...
|
...
|
@@ -597,11 +597,11 @@ class Api |
|
|
$map['createtime'] = ['BETWEEN', [$createtime - 1, $createtime + 86400 - 1]];
|
|
|
// if ($is_week == '周一') {
|
|
|
$count = Db::name('yuyue')->where(['user_id' => $user_id])->where('createtime', $createtime)->select();
|
|
|
if (!empty($count)) {
|
|
|
// if (!empty($count)) {
|
|
|
if (count($count) > 2) {
|
|
|
$this->error('超过最大可预约次数', 0);
|
|
|
die;
|
|
|
}
|
|
|
// }
|
|
|
}
|
|
|
// }
|
|
|
// if ($is_week == '周二') {
|
...
|
...
|
|