优化上传组件,修复一处bug

This commit is contained in:
2020-04-10 21:29:41 +08:00
parent a5a9c12ad0
commit 4e4aad4f93
8 changed files with 17 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ class Wechat extends Base {
$data = $this->request->post();
$result = WechatPay::create($data);
if (false != $result) {
return $this->success('添加成功!', url('/admin/wechat/index'));
return $this->success('添加成功!', url('/admin/wechat/pay'));
} else {
return $this->error('添加失败!');
}
@@ -156,7 +156,7 @@ class Wechat extends Base {
$data = $this->request->post();
$result = WechatPay::update($data, ['id' => $data['id']]);
if ($result !== false) {
return $this->success('编辑成功!', url('/admin/wechat/index'));
return $this->success('编辑成功!', url('/admin/wechat/pay'));
} else {
return $this->error('修改失败!');
}