作者 开飞机的舒克

接口优化

@@ -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')
@@ -5200,7 +5200,7 @@ @@ -5200,7 +5200,7 @@
5200 5200
5201 </div> 5201 </div>
5202 <div class="col-md-6" align="right"> 5202 <div class="col-md-6" align="right">
5203 - Generated on 2023-03-17 13:49:30 <a href="./" target="_blank">校园活动</a> 5203 + Generated on 2023-03-17 13:51:47 <a href="./" target="_blank">校园活动</a>
5204 </div> 5204 </div>
5205 </div> 5205 </div>
5206 5206