mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
throw_exception方法简化为E方法
删除redirect方法和N方法
This commit is contained in:
@@ -960,7 +960,7 @@ class Model {
|
||||
}elseif(is_string($data)){
|
||||
parse_str($data,$data);
|
||||
}elseif(!is_array($data)){
|
||||
throw_exception(L('_DATA_TYPE_INVALID_'));
|
||||
E(L('_DATA_TYPE_INVALID_'));
|
||||
}
|
||||
$this->data = $data;
|
||||
return $this;
|
||||
@@ -1007,7 +1007,7 @@ class Model {
|
||||
$options = $union;
|
||||
}
|
||||
}else{
|
||||
throw_exception(L('_DATA_TYPE_INVALID_'));
|
||||
E(L('_DATA_TYPE_INVALID_'));
|
||||
}
|
||||
$this->options['union'][] = $options;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user