Commit b6d91f61 authored by yinxiaoling's avatar yinxiaoling

为空处理

parent 74ec4d2b
......@@ -49,7 +49,7 @@ class StrategyTaskController extends Controller
$strategyInfo = $strategyInfo->orderBy('call_date','desc')->paginate($pageSize)->toArray();
}
$listInfo = [];
if (!empty($strategyInfo) && isset($strategyInfo['data'])){
if (isset($strategyInfo['data']) && !empty($strategyInfo['data'])){
foreach ($strategyInfo['data'] as $k=>$v){
$strategyInfo['data'][$k]['project_name'] = isset($projectArr[$v['project_sn']]) ? $projectArr[$v['project_sn']] : '';
$strategyInfo['data'][$k]['is_created_name'] = $v['is_created'] == 0 ? '未建' : '已建';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment