modified 删除接口,删除相关字段配置

This commit is contained in:
zhaoxiang 2017-06-20 15:09:30 +08:00
parent 31649100a2
commit fe7ed9d6a4

View File

@ -89,6 +89,9 @@ class ApiManageController extends BaseController {
$hash = D('ApiList')->where(array('id' => $id))->getField('hash');
S('ApiInfo_' . $hash, null);
D('ApiList')->del(array('id' => $id));
S('ApiRequest_' . $hash, null);
S('ApiResponse_' . $hash, null);
D('ApiFields')->where(array('hash' => $hash))->delete();
$this->ajaxSuccess('操作成功');
} else {
$this->ajaxError('缺少参数');