mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 13:31:38 +08:00
添加api接口的支持
This commit is contained in:
@@ -751,7 +751,7 @@ class Model {
|
||||
if(!empty($this->tableName)) {
|
||||
$tableName .= $this->tableName;
|
||||
}else{
|
||||
$tableName .= parse_name($this->name);
|
||||
$tableName .= Loader::parseName($this->name);
|
||||
}
|
||||
$this->trueTableName = strtolower($tableName);
|
||||
}
|
||||
@@ -919,7 +919,7 @@ class Model {
|
||||
}elseif(is_string($data)){
|
||||
parse_str($data,$data);
|
||||
}elseif(!is_array($data)){
|
||||
E(Lang::get('_DATA_TYPE_INVALID_'));
|
||||
throw new Exception(Lang::get('_DATA_TYPE_INVALID_'));
|
||||
}
|
||||
$this->data = $data;
|
||||
return $this;
|
||||
@@ -976,7 +976,7 @@ class Model {
|
||||
$options = $union;
|
||||
}
|
||||
}else{
|
||||
E(Lang::get('_DATA_TYPE_INVALID_'));
|
||||
throw new Exception(Lang::get('_DATA_TYPE_INVALID_'));
|
||||
}
|
||||
$this->options['union'][] = $options;
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user