代码功能更新

This commit is contained in:
root
2025-05-18 07:42:27 +00:00
parent 7fc1d422a1
commit 4a90c41da2
2083 changed files with 695218 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace laytp\library;
/**
* 常用函数
* Class CommonFun
* @package laytp\library
*/
class CommonFun
{
/**
* 统一处理post数据
* @param $post
* @return mixed
*/
public static function filterPostData($post)
{
if (!$post) {
return [];
}
//处理数组
foreach ($post as $k => $v) {
if (is_array($v)) {
$post[$k] = implode(',', $v);
}
}
return $post;
}
}