优化上传组件,修复一处bug
This commit is contained in:
@@ -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('修改失败!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user