作者 xiaohu thinkpad

ceshi wode jiaolian

@@ -17,6 +17,7 @@ use think\Db; @@ -17,6 +17,7 @@ use think\Db;
17 17
18 class ToolController extends HomeBaseController 18 class ToolController extends HomeBaseController
19 { 19 {
  20 +
20 public function isMixTime($begintime1,$endtime1,$begintime2,$endtime2) 21 public function isMixTime($begintime1,$endtime1,$begintime2,$endtime2)
21 { 22 {
22 $status = $begintime2 - $begintime1; 23 $status = $begintime2 - $begintime1;
@@ -32,6 +33,7 @@ class ToolController extends HomeBaseController @@ -32,6 +33,7 @@ class ToolController extends HomeBaseController
32 if($status2>=0){ 33 if($status2>=0){
33 return false; 34 return false;
34 }else{ 35 }else{
  36 +
35 return true; 37 return true;
36 } 38 }
37 } 39 }
@@ -70,7 +70,7 @@ class YuyueController extends UserBaseController @@ -70,7 +70,7 @@ class YuyueController extends UserBaseController
70 $f2 = array_search($eend, $day_find); 70 $f2 = array_search($eend, $day_find);
71 $ac = count($day_find) - 1; 71 $ac = count($day_find) - 1;
72 72
73 - if (($f2 && $f2 > '0') || ($f1 && $f1 < $ac) || ($f1 && $f2)) { 73 + if (($f2 && ($f2 > '0')) || ($f1 && ($f1 < $ac)) || ($f1 && $f2)) {
74 $ex .= $v['teach_id'] . ','; 74 $ex .= $v['teach_id'] . ',';
75 } 75 }
76 } 76 }