...
|
...
|
@@ -63,28 +63,10 @@ class YuyueController extends UserBaseController |
|
|
$ex = '';
|
|
|
|
|
|
foreach ($rr as $v) {
|
|
|
// $day_find = [];
|
|
|
// for ($i = $v['yuyue_begin']; $i <= $v['yuyue_end']; $i++) {
|
|
|
// $day_find[] = $i;
|
|
|
// }
|
|
|
// $f1 = array_search($bbegin, $day_find);
|
|
|
// $f2 = array_search($eend, $day_find);
|
|
|
// $ac = count($day_find) - 1;
|
|
|
//
|
|
|
// if (($f2 && ($f2 > '0')) || ($f1 && ($f1 < $ac)) || ($f1 && $f2)) {
|
|
|
// $ex .= $v['teach_id'] . ',';
|
|
|
// }
|
|
|
$res = $tool->isMixTime($bbegin,$eend,$v['yuyue_begin'],$v['yuyue_end']);
|
|
|
echo '<br>';
|
|
|
echo $bbegin,$eend,$v['yuyue_begin'],$v['yuyue_end'];
|
|
|
var_dump($res);
|
|
|
echo '<hr>';
|
|
|
|
|
|
$res && $ex .= $v['teach_id'] . ',';
|
|
|
|
|
|
}
|
|
|
var_dump($res);
|
|
|
var_dump($ex);
|
|
|
//获取当前时段有时间的教练
|
|
|
$where['user_type'] = 3;
|
|
|
$where['id'] = array('not in', $ex);
|
...
|
...
|
|