提交 70c9a650 authored 作者: chengye's avatar chengye

test

上级 251b2d08
...@@ -60,11 +60,11 @@ class openemfkClassAction extends openapiAction ...@@ -60,11 +60,11 @@ 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'=>$id], '201');
if ($id) { if ($id) {
//插入子表数据 //插入子表数据
$details = m(self::DETAILS_TABLE_NAME); $details = m(self::DETAILS_TABLE_NAME);
$this->showreturn([], ['aaa'=>$id], '201');
foreach ($this->subdata as $sub) { foreach ($this->subdata as $sub) {
$sub['mid'] = $id; $sub['mid'] = $id;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论