Commit 70d0d070 authored by yinxiaoling's avatar yinxiaoling

excel写入日志记录

parent aff3828e
......@@ -131,7 +131,7 @@ class CommonService
try{
if ($scientificCounting == 1){
foreach ($datas as $k=>$v){
if (strlen($v[1]) > 11 && is_numeric($v[1])){
if (isset($v[1]) && strlen($v[1]) > 11 && is_numeric($v[1])){
$v[1] = (string)$v[1];
$datas[$k] = $v;
}
......@@ -158,7 +158,8 @@ class CommonService
}
return true;
}catch(\Exception $e){
return response()->json(['rst' => 200,'msg'=>"异常".$e->getMessage()]);
Log::info($e->getLine().'-'.$e->getFile().'-'.$e->getMessage());
return false;
}
}
......
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