提交 16074888 authored 作者: chengye's avatar chengye

test

上级 a1236654
......@@ -25,7 +25,6 @@ class openemfkClassAction extends openapiAction
//m('log')->addlog('电费付款','接收数据:'.$_POST['data']);
$data = json_decode($_POST['data'], true);
$this->showreturn([], $_POST['data'], '201');
if (empty($data)) $this->showreturn([], $_POST['data'], '201');
if (!empty($data['docnum'])) $this->data['docnum'] = $data['docnum']; //如果是编辑则携带编码
......@@ -46,6 +45,9 @@ class openemfkClassAction extends openapiAction
$this->data['docnum'] = $this->data['docnum'] ?: $this->getDocNum();
$this->data['status'] = 0;
$this->data['amount'] = $this->AmountSum();
$this->showreturn([], $_POST['data'], '200');
}
//返回不存在的接口方法
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论