作者 xiaohu thinkpad

测试获取当前时段的老师

@@ -46,7 +46,7 @@ class YuyueController extends UserBaseController @@ -46,7 +46,7 @@ class YuyueController extends UserBaseController
46 //step3:选择响应时间教练 46 //step3:选择响应时间教练
47 public function coach_list(tool $tool) 47 public function coach_list(tool $tool)
48 { 48 {
49 - echo 2111111; 49 +
50 if (!session('yuyue_pre.day')) { 50 if (!session('yuyue_pre.day')) {
51 echo '非法请求'; 51 echo '非法请求';
52 } 52 }
@@ -75,6 +75,10 @@ class YuyueController extends UserBaseController @@ -75,6 +75,10 @@ class YuyueController extends UserBaseController
75 // $ex .= $v['teach_id'] . ','; 75 // $ex .= $v['teach_id'] . ',';
76 // } 76 // }
77 $res = $tool->isMixTime($bbegin,$eend,$v['yuyue_begin'],$v['yuyue_end']); 77 $res = $tool->isMixTime($bbegin,$eend,$v['yuyue_begin'],$v['yuyue_end']);
  78 + echo '<br>';
  79 + echo $bbegin,$eend,$v['yuyue_begin'],$v['yuyue_end'];
  80 + var_dump($res);
  81 + echo '<hr>';
78 82
79 $res && $ex .= $v['teach_id'] . ','; 83 $res && $ex .= $v['teach_id'] . ',';
80 84