mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进参数绑定
This commit is contained in:
@@ -338,7 +338,7 @@ abstract class Builder
|
|||||||
throw new Exception('where express error:' . $exp);
|
throw new Exception('where express error:' . $exp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$bindName = $bindName ?: 'where_' . str_replace(['.', '-'], '_', $field);
|
$bindName = $bindName ?: 'where_' . $rule . '_' . str_replace(['.', '-'], '_', $field);
|
||||||
if (preg_match('/\W/', $bindName)) {
|
if (preg_match('/\W/', $bindName)) {
|
||||||
// 处理带非单词字符的字段名
|
// 处理带非单词字符的字段名
|
||||||
$bindName = md5($bindName);
|
$bindName = md5($bindName);
|
||||||
|
|||||||
Reference in New Issue
Block a user