Commit fd9e400b205e236a50cbd2e9916a083825842e60
1 parent
8a3b569e
修改接口条件
Showing
1 changed file
with
1 additions
and
1 deletions
phpapi/apicp.DelLottery.php
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | $params[] = $_POST['id']; |
20 | 20 | $mysql = new mysqlHelper(); |
21 | 21 | // pdo保存数据 |
22 | - $updateSql = "UPDATE `lottery` SET is_cancel = 1 WHERE id = ?;"; | |
22 | + $updateSql = "UPDATE `lottery` SET is_cancel = 1 WHERE user_id = ?;"; | |
23 | 23 | $rowCount = $mysql->update($updateSql, $params); |
24 | 24 | if ($rowCount) { |
25 | 25 | JsonResponse::result([]); | ... | ... |