|
@@ -95,7 +95,7 @@ class Activity extends Api |
|
@@ -95,7 +95,7 @@ class Activity extends Api |
95
|
public function getRonda()
|
95
|
public function getRonda()
|
96
|
{
|
96
|
{
|
97
|
$cid = $this->request->param('cid');
|
97
|
$cid = $this->request->param('cid');
|
98
|
- if (empty($id)) {
|
98
|
+ if (empty($cid)) {
|
99
|
$this->error('参数错误', ['status' => 2]);
|
99
|
$this->error('参数错误', ['status' => 2]);
|
100
|
}
|
100
|
}
|
101
|
$data = db('ronda r')
|
101
|
$data = db('ronda r')
|
|
@@ -126,7 +126,7 @@ class Activity extends Api |
|
@@ -126,7 +126,7 @@ class Activity extends Api |
126
|
public function getItem()
|
126
|
public function getItem()
|
127
|
{
|
127
|
{
|
128
|
$rid = $this->request->param('rid');
|
128
|
$rid = $this->request->param('rid');
|
129
|
- if (empty($id)) {
|
129
|
+ if (empty($rid)) {
|
130
|
$this->error('参数错误', ['status' => 2]);
|
130
|
$this->error('参数错误', ['status' => 2]);
|
131
|
}
|
131
|
}
|
132
|
$data = db('item i')
|
132
|
$data = db('item i')
|