|
110 | 110 |
|
111 | 111 |
|
112 | 112 | if(count($clients) > 1 && $clientTotal > 0 && $clientExpiry > 0 && $clientEnable){ |
113 | | - $response = editClientTraffic($server_id, $inbound_id, $uuid, ($volume / 1024), $day); |
| 113 | + $responseEdit = editClientTraffic($server_id, $inbound_id, $uuid, ($volume / 1024), $day); |
114 | 114 | $orderExistStmt = $connection->prepare("SELECT * FROM `orders_list` WHERE `server_id` = ? AND `inbound_id` = ? AND `uuid` = ?"); |
115 | 115 | $orderExistStmt->bind_param("iis", $server_id, $inbound_id, $uuid); |
116 | 116 | } |
117 | 117 | elseif($total > 0 && $expiry_time > 0 && $inboundEnable){ |
118 | | - $response = editInboundTraffic($server_id, $uuid, ($volume/1024), $day); |
| 118 | + $responseEdit = editInboundTraffic($server_id, $uuid, ($volume/1024), $day); |
119 | 119 | $orderExistStmt = $connection->prepare("SELECT * FROM `orders_list` WHERE `server_id` = ? AND `inbound_id` = 0 AND `uuid` = ?"); |
120 | 120 | $orderExistStmt->bind_param("is", $server_id, $uuid); |
121 | 121 | } |
122 | 122 |
|
123 | | - if(!is_null($response)){ |
| 123 | + if(!is_null($responseEdit)){ |
124 | 124 | $orderExistStmt->execute(); |
125 | 125 | $orderExist = $orderExistStmt->get_result(); |
126 | 126 | $orderExistStmt->close(); |
|
156 | 156 | $found = true; |
157 | 157 | $uuid = $clients[0]['id']; |
158 | 158 | if($total > 0 && $expiry_time > 0 && $inboundEnable){ |
159 | | - $response = editInboundTraffic($server_id, $uuid, ($volume/1024), $day); |
160 | | - if(!is_null($response)){ |
| 159 | + $responseEdit = editInboundTraffic($server_id, $uuid, ($volume/1024), $day); |
| 160 | + if(!is_null($responseEdit)){ |
161 | 161 | $stmt = $connection->prepare("UPDATE `gift_list` SET `offset` = `offset` + 1 WHERE `id` = ?"); |
162 | 162 | $stmt->bind_param("i", $rowId); |
163 | 163 | $stmt->execute(); |
|
0 commit comments