$value){ if(isset($value['stock_id'])){ $value['action_uid']=$uid; $value['action_name']=$name; $value['action_type']=$action_type; $value['addtime']=date("Y-m-d H:i:s"); $temp[]=$value; } } } self::insertAll($temp); } } }