调整报错
parent
d6c58788d7
commit
df7b480517
|
|
@ -154,7 +154,8 @@ class CropYieldController extends Controller
|
||||||
$staticCropIds[] = $crop->id;
|
$staticCropIds[] = $crop->id;
|
||||||
if ($crop->extends) {
|
if ($crop->extends) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($crop->extends as $item) {
|
$extends = json_decode($crop->extends, true);
|
||||||
|
foreach ($extends as $item) {
|
||||||
$i++;
|
$i++;
|
||||||
$_key = 'extend_'.$i;
|
$_key = 'extend_'.$i;
|
||||||
$staticsData[$_key] = [
|
$staticsData[$_key] = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue