mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
Model类_parseType方法增加对参数绑定的判断
This commit is contained in:
@@ -431,7 +431,7 @@ class Model {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _parseType(&$data,$key) {
|
protected function _parseType(&$data,$key) {
|
||||||
if(isset($this->fields['_type'][$key])) {
|
if(empty($this->options['bind'][':'.$key]) && isset($this->fields['_type'][$key])) {
|
||||||
$fieldType = strtolower($this->fields['_type'][$key]);
|
$fieldType = strtolower($this->fields['_type'][$key]);
|
||||||
if(false === strpos($fieldType,'bigint') && false !== strpos($fieldType,'int')) {
|
if(false === strpos($fieldType,'bigint') && false !== strpos($fieldType,'int')) {
|
||||||
$data[$key] = intval($data[$key]);
|
$data[$key] = intval($data[$key]);
|
||||||
|
|||||||
Reference in New Issue
Block a user