Mike 4 سال پیش
والد
کامیت
db603310e1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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,