Commit d74d6caf94ae9512d09e155ff4860497f140621d
1 parent
46f46950
添加删除中奖记录接口
Showing
2 changed files
with
1 additions
and
3 deletions
phpapi/apicp.DelLottery.php
@@ -7,8 +7,6 @@ | @@ -7,8 +7,6 @@ | ||
7 | include "Common/mysqlHelper.php"; | 7 | include "Common/mysqlHelper.php"; |
8 | include "Common/Encrypter.php"; | 8 | include "Common/Encrypter.php"; |
9 | 9 | ||
10 | - // 登录验证 | ||
11 | - include "AdminAuth.php"; | ||
12 | 10 | ||
13 | // 删除的id | 11 | // 删除的id |
14 | if (!isset($_POST['id'])) { | 12 | if (!isset($_POST['id'])) { |
phpapi/apicp.LotteryList.php
@@ -23,7 +23,7 @@ header("Access-Control-Allow-Methods:GET,POST"); | @@ -23,7 +23,7 @@ header("Access-Control-Allow-Methods:GET,POST"); | ||
23 | $prizeList = $mysql->fetchAll( | 23 | $prizeList = $mysql->fetchAll( |
24 | "SELECT l.id,l.user_id,u.realname,u.headimg,u.prize_no FROM lottery as l | 24 | "SELECT l.id,l.user_id,u.realname,u.headimg,u.prize_no FROM lottery as l |
25 | LEFT JOIN user as u on u.id = l.user_id | 25 | LEFT JOIN user as u on u.id = l.user_id |
26 | - WHERE prize_id = {$prize_id}"); | 26 | + WHERE prize_id = {$prize_id} AND is_cancel = 0"); |
27 | 27 | ||
28 | $prizeList = $prizeList ?? []; | 28 | $prizeList = $prizeList ?? []; |
29 | JsonResponse::result(['data' => $prizeList]); | 29 | JsonResponse::result(['data' => $prizeList]); |