Commit 9f88aa92 authored by clone's avatar clone Committed by hujun

bug

parent 79f71084
...@@ -48,10 +48,11 @@ class Banner extends Basic ...@@ -48,10 +48,11 @@ class Banner extends Basic
*/ */
public function addOrSave() public function addOrSave()
{ {
$params = array( /* $params = array(
"id" => 2, "id" => 2,
"is_show" => 0 "is_show" => 0
); );*/
$params = $this->params;
$msg = isset($params['id']) ? "修改" : "新增"; $msg = isset($params['id']) ? "修改" : "新增";
$result = $this->bannerModel->addOrUpdate($params); $result = $this->bannerModel->addOrUpdate($params);
if ($result['code'] == 200) { if ($result['code'] == 200) {
...@@ -67,10 +68,11 @@ class Banner extends Basic ...@@ -67,10 +68,11 @@ class Banner extends Basic
*/ */
public function upIsShow() public function upIsShow()
{ {
$params = array( /* $params = array(
"id" => 1, "id" => 1,
"is_show" => 1 "is_show" => 1
); );*/
$params = $this->params;
$result = $this->bannerModel->upIsShow($params); $result = $this->bannerModel->upIsShow($params);
if ($result['code'] == 200) { if ($result['code'] == 200) {
return $this->response("200", "update success", $result["msg"]); return $this->response("200", "update success", $result["msg"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment