<?php
function nfInfoOracle(array $row,string $lane): array {
 if($lane==='C'){
  foreach(['power','carbohydrate','protein','fat','sodium']as $f)if(array_key_exists($f,$row)&&is_float($row[$f])&&is_finite($row[$f]))$row[$f]=(float)sprintf('%.2F',$row[$f]);
  if(is_float($row['use_weight'])&&is_finite($row['use_weight']))$row['use_weight']=(float)sprintf('%.6g',$row['use_weight']);
  $v=$row['create_time']??null;if(is_string($v)&&preg_match('/^((\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}))\.0{1,6}$/D',$v,$m)&&(int)$m[2]>=1000&&checkdate((int)$m[3],(int)$m[4],(int)$m[2])&&(int)$m[5]<=23&&(int)$m[6]<=59&&(int)$m[7]<=59)$row['create_time']=$m[1];
 }
 if($row['employ']==0)$row['employ']='';$row['specifications']=$row['specifications']?$row['specifications']:'';
 foreach(['img_path','source_img_path','app_img']as $f){if(!empty($row[$f]))throw new RuntimeException('Unexpected nonempty media outside original own scope');$row[$f]='';}
 // The original Json response does not use JSON_PRESERVE_ZERO_FRACTION.
 return json_decode(json_encode(['code'=>0,'message'=>'信息获取成功','data'=>$row],JSON_UNESCAPED_UNICODE),true);
}
