3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @file requestUserInfo.php * @TIME * @brief Brief * @Author Author * @Website www.lotto-pass.cn * */ define('IN_ECS', true); //echo "<p>in request:"; //print_r($_POST); $current_path = dirname(__FILE__); $base_path = substr($current_path, 0, strlen($current_path) - strlen("/webservice")); require_once($base_path . '/includes/init.php'); require_once(ROOT_PATH . 'includes/cls_json.php'); require_once(ROOT_PATH . 'includes/lib_common.php'); // echo "<p>After include:"; require_once (ROOT_PATH . 'includes/utilities/dbutilities.php'); require_once (ROOT_PATH . 'includes/webservice/webserviceutilities.php'); require_once (ROOT_PATH . 'includes/utilities/userUtilities.php'); $device_id = getHttpRequest("device_id"); $trans_time = getHttpRequest("trans_time"); $card_number = getHttpRequest("card_number"); $sessionId = getHttpRequest("sessionId"); $pSessionId = getHttpRequest("pSessionId"); $sessionTime = $trans_time; //getHttpRequest("sessionTime"); $min_required_points = getHttpRequest("mpb"); $check_sum = getHttpRequest("checksum"); $check_sum_array = array( "device_id" => $device_id, "card_number" => $card_number, "mpb" => $min_required_points, "trans_time" => $trans_time, "sessionId" => $sessionId, "checksum" => $check_sum ); $check_sum_str = constructHttpParameters($check_sum_array); // echo "<p>card_number:".$card_number; // echo "<p>check_sum_str:".$check_sum_str; $resultcode = 0; $xml_string = ""; $update_data = array(); $log_date = array(); $post_data = array(); // In case previousSessionId is found if (strlen($pSessionId) > 0) { include_once("closeUserTransaction.php"); $closedPreviousTransaction = array(); $consumed_points = getHttpRequest("consumed_points"); $received_award_points = getHttpRequest("award_points"); $transfer_points = getHttpRequest("transfer_points"); $user_points = 0; $received_cash_points = getHttpRequest("cash_points"); $closingRecordsReceived['card_number'] = $card_number; $closingRecordsReceived['sessionId'] = $pSessionId; $closingRecordsReceived['consumed_points'] = $consumed_points; $closingRecordsReceived['award_points'] = $received_award_points; $closingRecordsReceived['transfer_points'] = $transfer_points; $closingRecordsReceived['user_points'] = $user_points; $closingRecordsReceived['cash_points'] = $received_cash_points; $closingRecordsReceived['device_id'] = $device_id; $closingRecordsReceived['TransTime'] = $trans_time; $closedPreviousTransaction = closeUserTransaction($closingRecordsReceived); $post_data = array_merge($post_data, $closedPreviousTransaction); $post_data['pSessionId'] = $pSessionId; $resultcode_closing = 3; $post_data['status_closing'] = $resultcode_closing; } $min_factor1=5; //最低积分的倍数; $min_factor2=10; $transfer_factor1 = 0; // Not enough, no transfer $transfer_factor2 = 1; // Very low, send everything that enough for purchase $transfer_factor3 = 2; // Not enough for 10 purchases, send half of the points $transfer_factor4 = 10; // Sufficient, send points for 10 purchases. $exist_card_number = 0; $post_data['sessionId'] = $sessionId; $post_data['device_id'] = $device_id; $post_data['sessionTime'] = $sessionTime; $post_data['trans_time'] = $trans_time; $post_data['mpb'] = $min_required_points; $post_data['user_id'] = ""; $post_data['user_name'] = ""; $post_data['alias'] = "";//urlencode($alias); $post_data['display_user_points'] = 0; $post_data['message'] = ""; $post_data['transfer_points'] = 0; $post_data['user_points'] = 0; $post_data['fund_status'] = 100; //100 means not enough fund // Retrieve the jackpot related information and messages $jackpot_table_name = "jackpot_award"; $jackpot_key = "add_time"; $jackpot_sql_result = selectLastRecord($jackpot_key, $jackpot_table_name); while($sql_data = mysql_fetch_array($jackpot_sql_result, MYSQL_ASSOC)){ // echo "<p>The sql_result:"; // print_r($sql_data); $jackpot_amount = $sql_data['jackpot_amount']; $jackpot_ceiling = $sql_data['jackpot_ceiling']; $jackpot_preserved = $sql_data['jackpot_preserved']; $message_front = $sql_data['message_front']; $message_mid = $sql_data['message_mid']; $message_end = $sql_data['message_end']; $message_top = $sql_data['message_top']; //echo "The messages:".$message_front."-".$message_mid."-".$message_end."-".$message_top; $jackpot_data['jackpot_amount'] = $jackpot_amount; $jackpot_data['jackpot_ceiling'] = $jackpot_ceiling; $jackpot_data['jackpot_preserved'] = $jackpot_preserved; $jackpot_data['message_front'] = $message_front; $jackpot_data['message_mid'] = $message_mid; $jackpot_data['message_end'] = $message_end; $jackpot_data['message_top'] = $message_top; $post_data['Jackpot'] = $jackpot_data; } mysql_free_result($sql_result); // echo "<p>The post data:"; // print_r($post_data); // echo "<p>card_number length:".strlen($card_number); if (!existSessionId($sessionId, $sessionTime)) { // Retrieve the user information and the points from database $table_name = "users"; // echo "before check sum"; if (strlen($card_number) > 0) { $conditions = "card_number = ".$card_number; if (true) {// if (checkBcc($check_sum_str, $check_sum)) { // echo "after check sum"; $sql_result = selectConditionalRecords($conditions, $table_name); while($sql_data = mysql_fetch_array($sql_result, MYSQL_ASSOC)){ // echo "<p>The sql_result:"; // print_r($sql_data); $exist_card_number++; $user_id = $sql_data['user_id']; $user_name = $sql_data['user_name']; $alias = $sql_data['alias']; $current_user_points = abs($sql_data['user_points']); $current_frozen_points = abs($sql_data['frozen_points']); $post_data['user_id'] = $user_id; $post_data['user_name'] = $user_name; $post_data['alias'] = $alias; $post_data['display_user_points'] = abs(intval($current_user_points)); $usable_points = $current_user_points - $current_frozen_points; // echo "<p>usable_points:".$usable_points; switch ($usable_points) { case ($usable_points < $min_required_points) : // echo "<p>case: 100"; $post_data['message'] = "剩余积分不足, 请充值后再继续。"; //$usable_points = 0; $transfer_points = $usable_points * $transfer_factor1; $user_points = $current_user_points; $frozen_points = $current_frozen_points + $transfer_points; $post_data['transfer_points'] = abs(intval($transfer_points)); $post_data['user_points'] = abs(intval($user_points)); $post_data['fund_status'] = 100; //100 means not enough fund break; case ($usable_points >= $min_required_points and $usable_points <= $min_required_points*$min_factor1) : // echo "<p>case: 200"; $post_data['message'] = "剩余积分很低,请速充值。"; $transfer_points = round($usable_points/($min_required_points * $transfer_factor2),0)*$min_required_points; while ($transfer_points > $usable_points) { $transfer_points = $transfer_points - $min_required_points; } $frozen_points = $current_frozen_points + $transfer_points; $user_points = $current_user_points - $transfer_points; // echo "<p> transfer_points:".$transfer_points; $post_data['frozen_points'] = abs(intval($frozen_points)); $post_data['transfer_points'] = abs(intval($transfer_points)); $post_data['user_points'] = abs(intval($user_points)); $post_data['fund_status'] = 200; //200 means very low fund break; case ($usable_points > $min_required_points*$min_factor1 and $usable_points <= $min_required_points*$min_factor2) : // echo "<p>case: 300"; $post_data['message'] = "剩余积分低,请速充值。"; $transfer_points = round($usable_points /($min_required_points * $transfer_factor3),0)*$min_required_points; while ($transfer_points > $usable_points) { $transfer_points = $transfer_points - $min_required_points; } $frozen_points = $current_frozen_points + $transfer_points; $user_points = $current_user_points - $transfer_points; // echo "<p> transfer_points:".$transfer_points; $post_data['frozen_points'] = abs(intval($frozen_points)); $post_data['transfer_points'] = abs(intval($transfer_points)); $post_data['user_points'] = abs(intval($user_points)); $post_data['fund_status'] = 300; //300 means low fund break; case ($usable_points >= $min_required_points*$min_factor4) : // echo "<p>case: default"; $post_data['message'] = "感谢参与公益购彩。"; $transfer_points = $min_required_points*$transfer_factor4; $frozen_points = $current_frozen_points + $transfer_points; $user_points = $current_user_points - $transfer_points; // echo "<p> transfer_points:".$transfer_points; $post_data['frozen_points'] = abs(intval($frozen_points)); $post_data['transfer_points'] = abs(intval($transfer_points)); $post_data['user_points'] = abs(intval($user_points)); $post_data['fund_status'] = 1000; //1000 means sufficient fund break; default : // echo "<p>case: 0"; $post_data['message'] = "无法获取有效积分,请重试。"; $usable_points = 0; $transfer_points = 0; $user_points = 0; $post_data['transfer_points'] = 0; $post_data['user_points'] = 0; $post_data['fund_status'] = 0; //0 means not processed } } mysql_free_result($sql_result); } else { $resultcode = -5; } } else { $resultcode = 0; } // print_r($post_data); // Update if ($exist_card_number > 0) { $post_data['card_number'] = $card_number; $user_point_change = - $transfer_points; $frozen_points_change = $transfer_points; $change_desc = "可用积分".$usable_points.",向".$device_id."上划拨".$frozen_points."积分,资金状态".$post_data['fund_status']; log_account_change($user_id, 0, 0, 0, $user_point_change, $frozen_points_change, 0, 0, $change_desc); $resultcode = 1; $post_data['status'] = $resultcode; // Check if there is any voucher need to be printed for this user. $voucher_table_name = "active_vouchers"; $conditions = "user_id = ".$user_id." AND status = 0"; $voucher_sql_result = selectConditionalRecords($conditions, $voucher_table_name);; while($sql_data = mysql_fetch_array($voucher_sql_result, MYSQL_ASSOC)){ // echo "<p>The sql_result:"; // print_r($sql_data); $voucher_id = $sql_data['id']; $voucher_template_id = $sql_data['voucher_id']; $qr_message = $sql_data['qr_message']; $voucher_message = $sql_data['message']; $voucher_data['voucher_id'] = $voucher_id; $voucher_data['voucher_template_id'] = $voucher_template_id; $voucher_data['qr_message'] = $qr_message; $voucher_data['voucher_message'] = $voucher_message; $post_data['Coupon'] = $voucher_data; } mysql_free_result($sql_result); } else { $post_data['card_number'] = -1; } $xml_string = getArrayToXML($post_data); //echo $xml_string; $dbStatus = setSessionId($sessionId, $sessionTime, $frozen_points, $xml_string); // echo "<p> The XML_data:".$xml_string; } else { if (strlen($card_number) > 0) { $resultcode = 2;//重发 // $post_data['status'] = $resultcode; echo "resultcode:".$resultcode; $xml_string = getTransferred($sessionId, $sessionTime); } else { $resultcode = -1; $post_data['status'] = $resultcode; $post_data['card_number'] = -1; $xml_string = getArrayToXML($post_data); } } header("Expires: date('Y-m-d H:i:s')"); echo $xml_string; function setAcceptableArgs() { //echo "<p>In setAcceptableArgs: "; $acceptable_args = array( "card_number", "sessionId", "trans_time", "award_points", "min_required_points", "device_id", "checksum" ); return $acceptable_args; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 81, Position 2 = 132
Branch analysis from position: 81
1 jumps found. (Code = 42) Position 1 = 203
Branch analysis from position: 203
2 jumps found. (Code = 44) Position 1 = 210, Position 2 = 173
Branch analysis from position: 210
2 jumps found. (Code = 43) Position 1 = 219, Position 2 = 525
Branch analysis from position: 219
2 jumps found. (Code = 43) Position 1 = 223, Position 2 = 441
Branch analysis from position: 223
2 jumps found. (Code = 43) Position 1 = 226, Position 2 = 439
Branch analysis from position: 226
1 jumps found. (Code = 42) Position 1 = 428
Branch analysis from position: 428
2 jumps found. (Code = 44) Position 1 = 435, Position 2 = 232
Branch analysis from position: 435
1 jumps found. (Code = 42) Position 1 = 440
Branch analysis from position: 440
1 jumps found. (Code = 42) Position 1 = 442
Branch analysis from position: 442
2 jumps found. (Code = 43) Position 1 = 444, Position 2 = 511
Branch analysis from position: 444
1 jumps found. (Code = 42) Position 1 = 500
Branch analysis from position: 500
2 jumps found. (Code = 44) Position 1 = 507, Position 2 = 482
Branch analysis from position: 507
1 jumps found. (Code = 42) Position 1 = 513
Branch analysis from position: 513
1 jumps found. (Code = 42) Position 1 = 546
Branch analysis from position: 546
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 482
2 jumps found. (Code = 44) Position 1 = 507, Position 2 = 482
Branch analysis from position: 507
Branch analysis from position: 482
Branch analysis from position: 511
1 jumps found. (Code = 42) Position 1 = 546
Branch analysis from position: 546
Branch analysis from position: 232
2 jumps found. (Code = 44) Position 1 = 266, Position 2 = 286
Branch analysis from position: 266
2 jumps found. (Code = 46) Position 1 = 268, Position 2 = 271
Branch analysis from position: 268
2 jumps found. (Code = 44) Position 1 = 273, Position 2 = 308
Branch analysis from position: 273
2 jumps found. (Code = 46) Position 1 = 276, Position 2 = 279
Branch analysis from position: 276
2 jumps found. (Code = 44) Position 1 = 281, Position 2 = 348
Branch analysis from position: 281
2 jumps found. (Code = 44) Position 1 = 285, Position 2 = 388
Branch analysis from position: 285
1 jumps found. (Code = 42) Position 1 = 417
Branch analysis from position: 417
2 jumps found. (Code = 44) Position 1 = 435, Position 2 = 232
Branch analysis from position: 435
Branch analysis from position: 232
Branch analysis from position: 388
1 jumps found. (Code = 42) Position 1 = 428
Branch analysis from position: 428
Branch analysis from position: 348
1 jumps found. (Code = 42) Position 1 = 361
Branch analysis from position: 361
2 jumps found. (Code = 44) Position 1 = 363, Position 2 = 359
Branch analysis from position: 363
1 jumps found. (Code = 42) Position 1 = 428
Branch analysis from position: 428
Branch analysis from position: 359
2 jumps found. (Code = 44) Position 1 = 363, Position 2 = 359
Branch analysis from position: 363
Branch analysis from position: 359
Branch analysis from position: 279
Branch analysis from position: 308
1 jumps found. (Code = 42) Position 1 = 321
Branch analysis from position: 321
2 jumps found. (Code = 44) Position 1 = 323, Position 2 = 319
Branch analysis from position: 323
1 jumps found. (Code = 42) Position 1 = 428
Branch analysis from position: 428
Branch analysis from position: 319
2 jumps found. (Code = 44) Position 1 = 323, Position 2 = 319
Branch analysis from position: 323
Branch analysis from position: 319
Branch analysis from position: 271
Branch analysis from position: 286
1 jumps found. (Code = 42) Position 1 = 428
Branch analysis from position: 428
Branch analysis from position: 439
1 jumps found. (Code = 42) Position 1 = 442
Branch analysis from position: 442
Branch analysis from position: 441
2 jumps found. (Code = 43) Position 1 = 444, Position 2 = 511
Branch analysis from position: 444
Branch analysis from position: 511
Branch analysis from position: 525
2 jumps found. (Code = 43) Position 1 = 528, Position 2 = 537
Branch analysis from position: 528
1 jumps found. (Code = 42) Position 1 = 546
Branch analysis from position: 546
Branch analysis from position: 537
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 173
2 jumps found. (Code = 44) Position 1 = 210, Position 2 = 173
Branch analysis from position: 210
Branch analysis from position: 173
Branch analysis from position: 132
filename:       /in/Gj4JX
function name:  (null)
number of ops:  551
compiled vars:  !0 = $current_path, !1 = $base_path, !2 = $device_id, !3 = $trans_time, !4 = $card_number, !5 = $sessionId, !6 = $pSessionId, !7 = $sessionTime, !8 = $min_required_points, !9 = $check_sum, !10 = $check_sum_array, !11 = $check_sum_str, !12 = $resultcode, !13 = $xml_string, !14 = $update_data, !15 = $log_date, !16 = $post_data, !17 = $closedPreviousTransaction, !18 = $consumed_points, !19 = $received_award_points, !20 = $transfer_points, !21 = $user_points, !22 = $received_cash_points, !23 = $closingRecordsReceived, !24 = $resultcode_closing, !25 = $min_factor1, !26 = $min_factor2, !27 = $transfer_factor1, !28 = $transfer_factor2, !29 = $transfer_factor3, !30 = $transfer_factor4, !31 = $exist_card_number, !32 = $jackpot_table_name, !33 = $jackpot_key, !34 = $jackpot_sql_result, !35 = $jackpot_amount, !36 = $sql_data, !37 = $jackpot_ceiling, !38 = $jackpot_preserved, !39 = $message_front, !40 = $message_mid, !41 = $message_end, !42 = $message_top, !43 = $jackpot_data, !44 = $sql_result, !45 = $table_name, !46 = $conditions, !47 = $user_id, !48 = $user_name, !49 = $alias, !50 = $current_user_points, !51 = $current_frozen_points, !52 = $usable_points, !53 = $min_factor4, !54 = $frozen_points, !55 = $user_point_change, !56 = $frozen_points_change, !57 = $change_desc, !58 = $voucher_table_name, !59 = $voucher_sql_result, !60 = $voucher_id, !61 = $voucher_template_id, !62 = $qr_message, !63 = $voucher_message, !64 = $voucher_data, !65 = $dbStatus
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'IN_ECS'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   15     4        INIT_FCALL                                               'dirname'
          5        SEND_VAL                                                 '%2Fin%2FGj4JX'
          6        DO_ICALL                                         $67     
          7        ASSIGN                                                   !0, $67
   16     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 0
         11        STRLEN                                           ~69     !0
         12        SUB                                              ~70     ~69, 11
         13        SEND_VAL                                                 ~70
         14        DO_ICALL                                         $71     
         15        ASSIGN                                                   !1, $71
   17    16        CONCAT                                           ~73     !1, '%2Fincludes%2Finit.php'
         17        INCLUDE_OR_EVAL                                          ~73, REQUIRE_ONCE
   19    18        FETCH_CONSTANT                                   ~75     'ROOT_PATH'
         19        CONCAT                                           ~76     ~75, 'includes%2Fcls_json.php'
         20        INCLUDE_OR_EVAL                                          ~76, REQUIRE_ONCE
   20    21        FETCH_CONSTANT                                   ~78     'ROOT_PATH'
         22        CONCAT                                           ~79     ~78, 'includes%2Flib_common.php'
         23        INCLUDE_OR_EVAL                                          ~79, REQUIRE_ONCE
   24    24        FETCH_CONSTANT                                   ~81     'ROOT_PATH'
         25        CONCAT                                           ~82     ~81, 'includes%2Futilities%2Fdbutilities.php'
         26        INCLUDE_OR_EVAL                                          ~82, REQUIRE_ONCE
   25    27        FETCH_CONSTANT                                   ~84     'ROOT_PATH'
         28        CONCAT                                           ~85     ~84, 'includes%2Fwebservice%2Fwebserviceutilities.php'
         29        INCLUDE_OR_EVAL                                          ~85, REQUIRE_ONCE
   26    30        FETCH_CONSTANT                                   ~87     'ROOT_PATH'
         31        CONCAT                                           ~88     ~87, 'includes%2Futilities%2FuserUtilities.php'
         32        INCLUDE_OR_EVAL                                          ~88, REQUIRE_ONCE
   28    33        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         34        SEND_VAL_EX                                              'device_id'
         35        DO_FCALL                                      0  $90     
         36        ASSIGN                                                   !2, $90
   29    37        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         38        SEND_VAL_EX                                              'trans_time'
         39        DO_FCALL                                      0  $92     
         40        ASSIGN                                                   !3, $92
   30    41        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         42        SEND_VAL_EX                                              'card_number'
         43        DO_FCALL                                      0  $94     
         44        ASSIGN                                                   !4, $94
   31    45        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         46        SEND_VAL_EX                                              'sessionId'
         47        DO_FCALL                                      0  $96     
         48        ASSIGN                                                   !5, $96
   32    49        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         50        SEND_VAL_EX                                              'pSessionId'
         51        DO_FCALL                                      0  $98     
         52        ASSIGN                                                   !6, $98
   33    53        ASSIGN                                                   !7, !3
   34    54        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         55        SEND_VAL_EX                                              'mpb'
         56        DO_FCALL                                      0  $101    
         57        ASSIGN                                                   !8, $101
   35    58        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         59        SEND_VAL_EX                                              'checksum'
         60        DO_FCALL                                      0  $103    
         61        ASSIGN                                                   !9, $103
   38    62        INIT_ARRAY                                       ~105    !2, 'device_id'
   39    63        ADD_ARRAY_ELEMENT                                ~105    !4, 'card_number'
   40    64        ADD_ARRAY_ELEMENT                                ~105    !8, 'mpb'
   41    65        ADD_ARRAY_ELEMENT                                ~105    !3, 'trans_time'
   42    66        ADD_ARRAY_ELEMENT                                ~105    !5, 'sessionId'
   43    67        ADD_ARRAY_ELEMENT                                ~105    !9, 'checksum'
   37    68        ASSIGN                                                   !10, ~105
   46    69        INIT_FCALL_BY_NAME                                       'constructHttpParameters'
         70        SEND_VAR_EX                                              !10
         71        DO_FCALL                                      0  $107    
         72        ASSIGN                                                   !11, $107
   50    73        ASSIGN                                                   !12, 0
   51    74        ASSIGN                                                   !13, ''
   52    75        ASSIGN                                                   !14, <array>
   53    76        ASSIGN                                                   !15, <array>
   54    77        ASSIGN                                                   !16, <array>
   58    78        STRLEN                                           ~114    !6
         79        IS_SMALLER                                               0, ~114
         80      > JMPZ                                                     ~115, ->132
   59    81    >   INCLUDE_OR_EVAL                                          'closeUserTransaction.php', INCLUDE_ONCE
   61    82        ASSIGN                                                   !17, <array>
   63    83        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         84        SEND_VAL_EX                                              'consumed_points'
         85        DO_FCALL                                      0  $118    
         86        ASSIGN                                                   !18, $118
   64    87        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         88        SEND_VAL_EX                                              'award_points'
         89        DO_FCALL                                      0  $120    
         90        ASSIGN                                                   !19, $120
   65    91        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         92        SEND_VAL_EX                                              'transfer_points'
         93        DO_FCALL                                      0  $122    
         94        ASSIGN                                                   !20, $122
   66    95        ASSIGN                                                   !21, 0
   67    96        INIT_FCALL_BY_NAME                                       'getHttpRequest'
         97        SEND_VAL_EX                                              'cash_points'
         98        DO_FCALL                                      0  $125    
         99        ASSIGN                                                   !22, $125
   69   100        ASSIGN_DIM                                               !23, 'card_number'
        101        OP_DATA                                                  !4
   70   102        ASSIGN_DIM                                               !23, 'sessionId'
        103        OP_DATA                                                  !6
   71   104        ASSIGN_DIM                                               !23, 'consumed_points'
        105        OP_DATA                                                  !18
   72   106        ASSIGN_DIM                                               !23, 'award_points'
        107        OP_DATA                                                  !19
   73   108        ASSIGN_DIM                                               !23, 'transfer_points'
        109        OP_DATA                                                  !20
   74   110        ASSIGN_DIM                                               !23, 'user_points'
        111        OP_DATA                                                  !21
   75   112        ASSIGN_DIM                                               !23, 'cash_points'
        113        OP_DATA                                                  !22
   76   114        ASSIGN_DIM                                               !23, 'device_id'
        115        OP_DATA                                                  !2
   77   116        ASSIGN_DIM                                               !23, 'TransTime'
        117        OP_DATA                                                  !3
   79   118        INIT_FCALL_BY_NAME                                       'closeUserTransaction'
        119        SEND_VAR_EX                                              !23
        120        DO_FCALL                                      0  $136    
        121        ASSIGN                                                   !17, $136
   80   122        INIT_FCALL                                               'array_merge'
        123        SEND_VAR                                                 !16
        124        SEND_VAR                                                 !17
        125        DO_ICALL                                         $138    
        126        ASSIGN                                                   !16, $138
   81   127        ASSIGN_DIM                                               !16, 'pSessionId'
        128        OP_DATA                                                  !6
   82   129        ASSIGN                                                   !24, 3
   83   130        ASSIGN_DIM                                               !16, 'status_closing'
        131        OP_DATA                                                  !24
   87   132    >   ASSIGN                                                   !25, 5
   88   133        ASSIGN                                                   !26, 10
   90   134        ASSIGN                                                   !27, 0
   91   135        ASSIGN                                                   !28, 1
   92   136        ASSIGN                                                   !29, 2
   93   137        ASSIGN                                                   !30, 10
   97   138        ASSIGN                                                   !31, 0
   99   139        ASSIGN_DIM                                               !16, 'sessionId'
        140        OP_DATA                                                  !5
  100   141        ASSIGN_DIM                                               !16, 'device_id'
        142        OP_DATA                                                  !2
  101   143        ASSIGN_DIM                                               !16, 'sessionTime'
        144        OP_DATA                                                  !7
  102   145        ASSIGN_DIM                                               !16, 'trans_time'
        146        OP_DATA                                                  !3
  103   147        ASSIGN_DIM                                               !16, 'mpb'
        148        OP_DATA                                                  !8
  105   149        ASSIGN_DIM                                               !16, 'user_id'
        150        OP_DATA                                                  ''
  106   151        ASSIGN_DIM                                               !16, 'user_name'
        152        OP_DATA                                                  ''
  107   153        ASSIGN_DIM                                               !16, 'alias'
        154        OP_DATA                                                  ''
  108   155        ASSIGN_DIM                                               !16, 'display_user_points'
        156        OP_DATA                                                  0
  109   157        ASSIGN_DIM                                               !16, 'message'
        158        OP_DATA                                                  ''
  110   159        ASSIGN_DIM                                               !16, 'transfer_points'
        160        OP_DATA                                                  0
  111   161        ASSIGN_DIM                                               !16, 'user_points'
        162        OP_DATA                                                  0
  112   163        ASSIGN_DIM                                               !16, 'fund_status'
        164        OP_DATA                                                  100
  116   165        ASSIGN                                                   !32, 'jackpot_award'
  117   166        ASSIGN                                                   !33, 'add_time'
  118   167        INIT_FCALL_BY_NAME                                       'selectLastRecord'
        168        SEND_VAR_EX                                              !33
        169        SEND_VAR_EX                                              !32
        170        DO_FCALL                                      0  $165    
        171        ASSIGN                                                   !34, $165
  120   172      > JMP                                                      ->203
  124   173    >   FETCH_DIM_R                                      ~167    !36, 'jackpot_amount'
        174        ASSIGN                                                   !35, ~167
  125   175        FETCH_DIM_R                                      ~169    !36, 'jackpot_ceiling'
        176        ASSIGN                                                   !37, ~169
  126   177        FETCH_DIM_R                                      ~171    !36, 'jackpot_preserved'
        178        ASSIGN                                                   !38, ~171
  127   179        FETCH_DIM_R                                      ~173    !36, 'message_front'
        180        ASSIGN                                                   !39, ~173
  128   181        FETCH_DIM_R                                      ~175    !36, 'message_mid'
        182        ASSIGN                                                   !40, ~175
  129   183        FETCH_DIM_R                                      ~177    !36, 'message_end'
        184        ASSIGN                                                   !41, ~177
  130   185        FETCH_DIM_R                                      ~179    !36, 'message_top'
        186        ASSIGN                                                   !42, ~179
  133   187        ASSIGN_DIM                                               !43, 'jackpot_amount'
        188        OP_DATA                                                  !35
  134   189        ASSIGN_DIM                                               !43, 'jackpot_ceiling'
        190        OP_DATA                                                  !37
  135   191        ASSIGN_DIM                                               !43, 'jackpot_preserved'
        192        OP_DATA                                                  !38
  137   193        ASSIGN_DIM                                               !43, 'message_front'
        194        OP_DATA                                                  !39
  138   195        ASSIGN_DIM                                               !43, 'message_mid'
        196        OP_DATA                                                  !40
  139   197        ASSIGN_DIM                                               !43, 'message_end'
        198        OP_DATA                                                  !41
  140   199        ASSIGN_DIM                                               !43, 'message_top'
        200        OP_DATA                                                  !42
  142   201        ASSIGN_DIM                                               !16, 'Jackpot'
        202        OP_DATA                                                  !43
  120   203    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
        204        SEND_VAR_EX                                              !34
        205        FETCH_CONSTANT                                   ~189    'MYSQL_ASSOC'
        206        SEND_VAL_EX                                              ~189
        207        DO_FCALL                                      0  $190    
        208        ASSIGN                                           ~191    !36, $190
        209      > JMPNZ                                                    ~191, ->173
  145   210    >   INIT_FCALL_BY_NAME                                       'mysql_free_result'
        211        SEND_VAR_EX                                              !44
        212        DO_FCALL                                      0          
  150   213        INIT_FCALL_BY_NAME                                       'existSessionId'
        214        SEND_VAR_EX                                              !5
        215        SEND_VAR_EX                                              !7
        216        DO_FCALL                                      0  $193    
        217        BOOL_NOT                                         ~194    $193
        218      > JMPZ                                                     ~194, ->525
  152   219    >   ASSIGN                                                   !45, 'users'
  154   220        STRLEN                                           ~196    !4
        221        IS_SMALLER                                               0, ~196
        222      > JMPZ                                                     ~197, ->441
  155   223    >   CONCAT                                           ~198    'card_number+%3D+', !4
        224        ASSIGN                                                   !46, ~198
  156   225      > JMPZ                                                     <true>, ->439
  158   226    >   INIT_FCALL_BY_NAME                                       'selectConditionalRecords'
        227        SEND_VAR_EX                                              !46
        228        SEND_VAR_EX                                              !45
        229        DO_FCALL                                      0  $200    
        230        ASSIGN                                                   !44, $200
  159   231      > JMP                                                      ->428
  162   232    >   PRE_INC                                                  !31
  164   233        FETCH_DIM_R                                      ~203    !36, 'user_id'
        234        ASSIGN                                                   !47, ~203
  165   235        FETCH_DIM_R                                      ~205    !36, 'user_name'
        236        ASSIGN                                                   !48, ~205
  166   237        FETCH_DIM_R                                      ~207    !36, 'alias'
        238        ASSIGN                                                   !49, ~207
  167   239        INIT_FCALL                                               'abs'
        240        FETCH_DIM_R                                      ~209    !36, 'user_points'
        241        SEND_VAL                                                 ~209
        242        DO_ICALL                                         $210    
        243        ASSIGN                                                   !50, $210
  168   244        INIT_FCALL                                               'abs'
        245        FETCH_DIM_R                                      ~212    !36, 'frozen_points'
        246        SEND_VAL                                                 ~212
        247        DO_ICALL                                         $213    
        248        ASSIGN                                                   !51, $213
  170   249        ASSIGN_DIM                                               !16, 'user_id'
        250        OP_DATA                                                  !47
  171   251        ASSIGN_DIM                                               !16, 'user_name'
        252        OP_DATA                                                  !48
  172   253        ASSIGN_DIM                                               !16, 'alias'
        254        OP_DATA                                                  !49
  173   255        INIT_FCALL                                               'abs'
        256        CAST                                          4  ~219    !50
        257        SEND_VAL                                                 ~219
        258        DO_ICALL                                         $220    
        259        ASSIGN_DIM                                               !16, 'display_user_points'
        260        OP_DATA                                                  $220
  175   261        SUB                                              ~221    !50, !51
        262        ASSIGN                                                   !52, ~221
  180   263        IS_SMALLER                                       ~224    !52, !8
        264        IS_EQUAL                                                 !52, ~224
        265      > JMPNZ                                                    ~223, ->286
  191   266    >   IS_SMALLER_OR_EQUAL                              ~225    !8, !52
        267      > JMPZ_EX                                          ~225    ~225, ->271
        268    >   MUL                                              ~226    !8, !25
        269        IS_SMALLER_OR_EQUAL                              ~227    !52, ~226
        270        BOOL                                             ~225    ~227
        271    >   IS_EQUAL                                                 !52, ~225
        272      > JMPNZ                                                    ~223, ->308
  208   273    >   MUL                                              ~228    !8, !25
        274        IS_SMALLER                                       ~229    ~228, !52
        275      > JMPZ_EX                                          ~229    ~229, ->279
        276    >   MUL                                              ~230    !8, !26
        277        IS_SMALLER_OR_EQUAL                              ~231    !52, ~230
        278        BOOL                                             ~229    ~231
        279    >   IS_EQUAL                                                 !52, ~229
        280      > JMPNZ                                                    ~223, ->348
  223   281    >   MUL                                              ~232    !8, !53
        282        IS_SMALLER_OR_EQUAL                              ~233    ~232, !52
        283        IS_EQUAL                                                 !52, ~233
        284      > JMPNZ                                                    ~223, ->388
        285    > > JMP                                                      ->417
  182   286    >   ASSIGN_DIM                                               !16, 'message'
        287        OP_DATA                                                  '%E5%89%A9%E4%BD%99%E7%A7%AF%E5%88%86%E4%B8%8D%E8%B6%B3%2C+%E8%AF%B7%E5%85%85%E5%80%BC%E5%90%8E%E5%86%8D%E7%BB%A7%E7%BB%AD%E3%80%82'
  184   288        MUL                                              ~235    !52, !27
        289        ASSIGN                                                   !20, ~235
  185   290        ASSIGN                                                   !21, !50
  186   291        ADD                                              ~238    !51, !20
        292        ASSIGN                                                   !54, ~238
  187   293        INIT_FCALL                                               'abs'
        294        CAST                                          4  ~241    !20
        295        SEND_VAL                                                 ~241
        296        DO_ICALL                                         $242    
        297        ASSIGN_DIM                                               !16, 'transfer_points'
        298        OP_DATA                                                  $242
  188   299        INIT_FCALL                                               'abs'
        300        CAST                                          4  ~244    !21
        301        SEND_VAL                                                 ~244
        302        DO_ICALL                                         $245    
        303        ASSIGN_DIM                                               !16, 'user_points'
        30

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
133.62 ms | 1433 KiB | 23 Q