提交 7e174423 authored 作者: chengye's avatar chengye

test

上级 16074888
...@@ -46,8 +46,6 @@ class openemfkClassAction extends openapiAction ...@@ -46,8 +46,6 @@ class openemfkClassAction extends openapiAction
$this->data['status'] = 0; $this->data['status'] = 0;
$this->data['amount'] = $this->AmountSum(); $this->data['amount'] = $this->AmountSum();
$this->showreturn([], $_POST['data'], '200');
} }
//返回不存在的接口方法 //返回不存在的接口方法
...@@ -62,6 +60,9 @@ class openemfkClassAction extends openapiAction ...@@ -62,6 +60,9 @@ class openemfkClassAction extends openapiAction
{ {
$model = m(self::TABLE_NAME); $model = m(self::TABLE_NAME);
$id =$model->insert($this->data); $id =$model->insert($this->data);
$this->showreturn([], ['aaa'=>'cccc'], '201');
if ($id) { if ($id) {
//插入子表数据 //插入子表数据
$details = m(self::DETAILS_TABLE_NAME); $details = m(self::DETAILS_TABLE_NAME);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论