|
@@ -78,7 +78,7 @@ function getIds($type, $match_id, $game_code = '')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-$ids = getIds(1, 483, 'zg');
|
|
|
|
|
|
|
+$ids = getIds(1, 830, 'zg');
|
|
|
echo "ids_len:" . count($ids) . "\n";
|
|
echo "ids_len:" . count($ids) . "\n";
|
|
|
|
|
|
|
|
function request_post($url = '', $param = '')
|
|
function request_post($url = '', $param = '')
|
|
@@ -101,19 +101,43 @@ function request_post($url = '', $param = '')
|
|
|
return $data;
|
|
return $data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
$data = [
|
|
$data = [
|
|
|
- 'token' => 'Vzaw7D15641252745d3aa85a3e806',
|
|
|
|
|
|
|
+ 'token' => 'K2ejuv15642777935d3cfc2188b85',
|
|
|
//'order_ids' => implode(",", $ids),
|
|
//'order_ids' => implode(",", $ids),
|
|
|
'order_ids' => '',
|
|
'order_ids' => '',
|
|
|
'bettype' => 1,
|
|
'bettype' => 1,
|
|
|
'settype' => 2,
|
|
'settype' => 2,
|
|
|
'game_code' => 'zq',
|
|
'game_code' => 'zq',
|
|
|
- 'match_id' => 834,
|
|
|
|
|
|
|
+ 'match_id' => 830,
|
|
|
'change_status' => 1
|
|
'change_status' => 1
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
-$ret = request_post('http://192.168.2.220:9094/Settelement', $data);
|
|
|
|
|
-echo "返回:" . print_r($ret, true) . "\n\n";
|
|
|
|
|
|
|
+//$ret = request_post('http://192.168.2.220:9094/Settelement', $data);
|
|
|
|
|
+//echo "返回:" . print_r($ret, true) . "\n\n";
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+$rconf = \datainf\lib\GlobConfigs::getKey('redis');
|
|
|
|
|
+$redis = new \Redis();
|
|
|
|
|
+$r = $redis->connect($rconf['host'], $rconf['port']);
|
|
|
|
|
+if (!$r) {
|
|
|
|
|
+ echo "连接redis失败\n";
|
|
|
|
|
+ return;
|
|
|
|
|
+}
|
|
|
|
|
+$r = $redis->auth($rconf['passwd']);
|
|
|
|
|
+if (!$r) {
|
|
|
|
|
+ echo "auth false;";
|
|
|
|
|
+ return;
|
|
|
|
|
+}
|
|
|
|
|
+$redis->select($rconf['db']);
|
|
|
|
|
+
|
|
|
|
|
+for ($i = 1; $i <= 10; $i++) {
|
|
|
|
|
+ //$redis->del("test_" . $i);
|
|
|
|
|
+ $redis->hset('test', "test_" . $i, date("Y-m-d H:i:s"));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+echo "值:" . $r . "\n";
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|