市场结算添加编辑添加户名

master
zhengyongxing 5 years ago
parent b74ac306ae
commit da420ceb5c

@ -169,15 +169,15 @@ class StatementMangementController extends ThinkController
$id = $_REQUEST['id']; $id = $_REQUEST['id'];
if (!$id) { if (!$id) {
$this->ajaxReturn(['code'=>2000,'msg'=>'error']); $this->ajaxReturn(['code'=>2000,'error'=>'no']);
} }
$is_del = M('statement','tab_')->where(['id'=>$id])->delete(); $is_del = M('statement','tab_')->where(['id'=>$id])->delete();
if ($is_del) { if ($is_del) {
$this->ajaxReturn(['code'=>0,'msg'=>'success']); $this->ajaxReturn(['code'=>0,'success'=>'ok']);
} else { } else {
$this->ajaxReturn(['code'=>2000,'msg'=>'error']); $this->ajaxReturn(['code'=>2000,'error'=>'no']);
} }
} }

Loading…
Cancel
Save