我在代码里用了
Yii::$service->cms->staticblock->getStoreContentByIdentify('home-big-img','appfront')
是getStoreContentByIdentify 这个方法,但在66行,ob_start开始后就得不到任何信息了,
https://github.com/fecshop/yii2_fecshop/blob/master/services/cms/StaticBlock.php#L66
我打印 $staticBlock, $content, $_params_都有信息,但是最后foreach完后,echo $storeContent;是空的。
去掉 return ob_get_clean(); 就可以正常输出内容。但是去掉它就不对了呀。