Skip to content

Commit 2473b5e

Browse files
committed
updates and improvements
1 parent 0937382 commit 2473b5e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/api.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = n
199199
$int_map = [
200200
5000 => 5008,
201201
5001 => 5014,
202-
5002 => 5009
202+
5002 => 5009,
203+
10683 => 10682
203204
];
204205
$GLOBALS['tf']->session->sessionid = $sid;
205206
if ($GLOBALS['tf']->session->verify()) {
@@ -286,7 +287,7 @@ function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = n
286287
}
287288
}
288289
$service_id_for_type = implode(',', $temp_service_ids);
289-
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type in ($service_id_for_type)", __LINE__, __FILE__);
290+
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type in ({$service_id_for_type})", __LINE__, __FILE__);
290291
if ($db->num_rows() > 0) {
291292
while ($db->next_record(MYSQL_ASSOC)) {
292293
$license_info = $db->Record;
@@ -319,7 +320,7 @@ function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = n
319320
}
320321
}
321322
} else {
322-
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type=$service_type", __LINE__, __FILE__);
323+
$db->query("select * from {$settings['TABLE']} where {$settings['PREFIX']}_ip='{$ip}' and {$settings['PREFIX']}_type={$service_type}", __LINE__, __FILE__);
323324
}
324325
if ($db->num_rows() > 0) {
325326
$db->next_record(MYSQL_ASSOC);

0 commit comments

Comments
 (0)