调整报错

dev
vine_liutk 2022-11-07 14:23:36 +08:00
parent d6c58788d7
commit df7b480517
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ class CropYieldController extends Controller
$staticCropIds[] = $crop->id;
if ($crop->extends) {
$i = 0;
foreach ($crop->extends as $item) {
$extends = json_decode($crop->extends, true);
foreach ($extends as $item) {
$i++;
$_key = 'extend_'.$i;
$staticsData[$_key] = [