作者 开飞机的舒克

接口优化

@@ -137,7 +137,7 @@ class Bind extends Api @@ -137,7 +137,7 @@ class Bind extends Api
137 /** 137 /**
138 * @ApiTitle (活动现场[扫码]) 138 * @ApiTitle (活动现场[扫码])
139 * @ApiMethod (POST) 139 * @ApiMethod (POST)
140 - * @ApiParams (name="items_id", type="string", required=true, description="项目id") 140 + * @ApiParams (name="id", type="string", required=true, description="项目id")
141 * @ApiParams (name="unique", type="string", required=true, description="条形码唯一标识") 141 * @ApiParams (name="unique", type="string", required=true, description="条形码唯一标识")
142 * @ApiReturn ({ 142 * @ApiReturn ({
143 "code":"状态码", 143 "code":"状态码",
@@ -148,7 +148,7 @@ class Bind extends Api @@ -148,7 +148,7 @@ class Bind extends Api
148 } 148 }
149 }) 149 })
150 */ 150 */
151 - public function Ewm() 151 + public function scanBarCode()
152 { 152 {
153 $id = $this->request->param('id'); 153 $id = $this->request->param('id');
154 $unique = $this->request->param('unique'); 154 $unique = $this->request->param('unique');
@@ -168,7 +168,7 @@ class Bind extends Api @@ -168,7 +168,7 @@ class Bind extends Api
168 'study_id' => $study['id'], 168 'study_id' => $study['id'],
169 'team_id' => $study['team_id'], 169 'team_id' => $study['team_id'],
170 'score' => $item['score'], 170 'score' => $item['score'],
171 - 'memo' => $study['name'] . '参加' . $item['title'] . '项目给' . $team['title'] . '加分', 171 + 'memo' => $study['name'] . '参加' . $item['title'] . '加分',
172 'createtime' => time() 172 'createtime' => time()
173 ]); 173 ]);
174 db('study') 174 db('study')
@@ -3133,7 +3133,7 @@ @@ -3133,7 +3133,7 @@
3133 <div class="panel-heading" id="heading-9"> 3133 <div class="panel-heading" id="heading-9">
3134 <h4 class="panel-title"> 3134 <h4 class="panel-title">
3135 <span class="label label-primary">POST</span> 3135 <span class="label label-primary">POST</span>
3136 - <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 活动现场[扫码] <span class="text-muted">/api/bind/Ewm</span></a> 3136 + <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 活动现场[扫码] <span class="text-muted">/api/bind/scanBarCode</span></a>
3137 </h4> 3137 </h4>
3138 </div> 3138 </div>
3139 <div id="collapseOne9" class="panel-collapse collapse"> 3139 <div id="collapseOne9" class="panel-collapse collapse">
@@ -3189,7 +3189,7 @@ @@ -3189,7 +3189,7 @@
3189 </thead> 3189 </thead>
3190 <tbody> 3190 <tbody>
3191 <tr> 3191 <tr>
3192 - <td>items_id</td> 3192 + <td>id</td>
3193 <td>string</td> 3193 <td>string</td>
3194 <td></td> 3194 <td></td>
3195 <td>项目id</td> 3195 <td>项目id</td>
@@ -3221,10 +3221,10 @@ @@ -3221,10 +3221,10 @@
3221 </div> 3221 </div>
3222 </div> 3222 </div>
3223 <div class="panel-body"> 3223 <div class="panel-body">
3224 - <form enctype="application/x-www-form-urlencoded" role="form" action="/api/bind/Ewm" method="POST" name="form9" id="form9"> 3224 + <form enctype="application/x-www-form-urlencoded" role="form" action="/api/bind/scanBarCode" method="POST" name="form9" id="form9">
3225 <div class="form-group"> 3225 <div class="form-group">
3226 - <label class="control-label" for="items_id">items_id</label>  
3227 - <input type="string" class="form-control input-sm" id="items_id" required placeholder="项目id" name="items_id"> 3226 + <label class="control-label" for="id">id</label>
  3227 + <input type="string" class="form-control input-sm" id="id" required placeholder="项目id" name="id">
3228 </div> 3228 </div>
3229 <div class="form-group"> 3229 <div class="form-group">
3230 <label class="control-label" for="unique">unique</label> 3230 <label class="control-label" for="unique">unique</label>
@@ -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 14:41:33 <a href="./" target="_blank">校园活动</a> 5203 + Generated on 2023-03-17 14:45:40 <a href="./" target="_blank">校园活动</a>
5204 </div> 5204 </div>
5205 </div> 5205 </div>
5206 5206