Mike %!s(int64=4) %!d(string=hai) anos
pai
achega
db603310e1
Modificáronse 1 ficheiros con 2 adicións e 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,