提交 4f1b82d4 authored 作者: chengye's avatar chengye

test

上级 a2a1bc51
...@@ -22,7 +22,7 @@ class openemfkClassAction extends openapiAction ...@@ -22,7 +22,7 @@ class openemfkClassAction extends openapiAction
public function initAction() public function initAction()
{ {
//post方式接收接口数据 //post方式接收接口数据
m('log')->addlog('电费付款','接收数据:'.$_POST['data']); //m('log')->addlog('电费付款','接收数据:'.$_POST['data']);
$data = json_decode($_POST['data'], true); $data = json_decode($_POST['data'], true);
if (empty($data)) $this->showreturn([], $_POST['data'], '201'); if (empty($data)) $this->showreturn([], $_POST['data'], '201');
...@@ -31,7 +31,7 @@ class openemfkClassAction extends openapiAction ...@@ -31,7 +31,7 @@ class openemfkClassAction extends openapiAction
$user = $this->getUser($data['uname']); //获取用户信息 $user = $this->getUser($data['uname']); //获取用户信息
$data['applicant'] = $data['optname'] = $user['name']; $data['applicant'] = $data['optname'] = $user['name'];
m('log')->addlog('电费付款','用户:'.$user['name']); //m('log')->addlog('电费付款','用户:'.$user['name']);
$this->subdata = $this->getSubData($data['details']); $this->subdata = $this->getSubData($data['details']);
unset($data['details']); unset($data['details']);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论