This commit is contained in:
2020-05-02 20:52:53 +08:00
parent 405b46c69f
commit 149c0e984e
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ class Form extends Base {
$info = FormModel::where('id', $id)->find();
$result = Db::name(ucfirst($info['name']))->save($data);
$result = Db::name('Form' . ucfirst($info['name']))->save($data);
if (false !== $result) {
$url = (isset($info['redirect_url']) && $info['redirect_url']) ? $info['redirect_url'] : '';
return $this->success("提交成功!", $url);
@@ -56,7 +56,7 @@ class Form extends Base {
$this->data = [
'info' => $info,
'attr' => $attr
'attr' => $attr,
];
return $this->fetch();
}
+1 -1
View File
@@ -530,7 +530,7 @@ CREATE TABLE `sent_member_log` (
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '操作名称',
`method` varchar(20) NOT NULL DEFAULT 'GET' COMMENT '操作类型',
`url` varchar(150) NOT NULL DEFAULT '' COMMENT '操作地址',
`param` varchar(150) NOT NULL DEFAULT '' COMMENT '操作参数',
`param` text DEFAULT '' COMMENT '操作参数',
`client_ip` varchar(30) NOT NULL DEFAULT '' COMMENT '客户端IP',
`visite_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '访问时间',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',