Commit 971f806f authored by yinxiaoling's avatar yinxiaoling

日志记录表头不一致

parent 1845b29e
......@@ -46,6 +46,7 @@ class StrategyService
//验证excel表头格式
$title = array_shift($data);
if ($title != ['姓名','*手机号码','值班日期']){//匹配excel表头
Log::channel('api')->info('表头不一致:导入的表头:'.implode('#', $title)." ;正确的表头数据:".implode("#", ['姓名','*手机号码','值班日期']));
return ['msg'=>'导入失败,excel表头不一致', 'code'=>401];
}
return $data;
......
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