Mike hace 4 años
padre
commit
db603310e1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Community/Controllers/ApiController.php

+ 2 - 2
app/Community/Controllers/ApiController.php

xqd xqd
@@ -556,7 +556,7 @@ class ApiController extends Controller
 //                    echo '周几'.$week.' 日期 '.$scheduleDate.PHP_EOL;
 
                 if(empty($today)){
-                    $scheduleList[] = [
+                    $scheduleList[$i-1] = [
                         'schedulelingList'=>$baseData,
                         'date'=>$i,
                         'week'=>$week,
@@ -591,7 +591,7 @@ class ApiController extends Controller
                     ->distinct('type')->get(['organization_id','type'])->GroupBy('type')->toArray();
 
                 if(empty($today)){
-                    $scheduleList[] = [
+                    $scheduleList[$i-1] = [
                         'schedulelingList'=>$baseData,
                         'date'=>$i,
                         'week'=>$week,