update niucloud

This commit is contained in:
全栈小学生
2024-07-26 10:19:52 +08:00
parent 71defadfff
commit 77d9446299
186 changed files with 4592 additions and 1519 deletions

View File

@@ -35,4 +35,14 @@ class BaseModel extends Model
$table_name = str_replace($tablePrefix, '', $table_info['Name']);
return Db::name($table_name)->getFields();
}
/**
* 处理搜索条件特殊字符(%、_
* @param $value
*/
public function handelSpecialCharacter($value)
{
$value = str_replace('%', '\%', str_replace('_', '\_', $value));
return $value;
}
}