|
|
@@ -267,16 +267,22 @@ class HttpServerSettelement
|
|
|
|
|
|
private function requestpara($request, $response, $paras)
|
|
|
{
|
|
|
- $idoarr = explode(",", $paras['order_ids']);
|
|
|
- $order_ids = array_map(function ($i) {
|
|
|
- return strval($i);
|
|
|
- }, $idoarr);
|
|
|
$bettype = isset($paras['bettype']) ? $paras['bettype'] : 0;
|
|
|
$settype = isset($paras['settype']) ? $paras['settype'] : 0;
|
|
|
$game_code = isset($paras['game_code']) ? $paras['game_code'] : '';
|
|
|
$match_id = isset($paras['match_id']) ? $paras['match_id'] : 0;
|
|
|
$change_status = isset($paras['change_status']) ? $paras['change_status'] : 0;
|
|
|
|
|
|
+ if (empty($paras['order_ids'])) {
|
|
|
+ $idoarr = $this->getOrders($bettype, $game_code, $match_id);
|
|
|
+ } else {
|
|
|
+ $idoarr = explode(",", $paras['order_ids']);
|
|
|
+ }
|
|
|
+
|
|
|
+ $order_ids = array_map(function ($i) {
|
|
|
+ return strval($i);
|
|
|
+ }, $idoarr);
|
|
|
+
|
|
|
if (intval($match_id) <= 0) {
|
|
|
throw new \Exception('赛事ID不能为空!');
|
|
|
return;
|
|
|
@@ -300,6 +306,13 @@ class HttpServerSettelement
|
|
|
return $ret;
|
|
|
}
|
|
|
|
|
|
+ private function getOrders($bet_type, $game_type, $match_id)
|
|
|
+ {
|
|
|
+ $logic_obj = new WinfailLogic();
|
|
|
+ $ids = $logic_obj->get_orderIds($bet_type, $game_type, $match_id);
|
|
|
+ return $ids;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private function Match_check($idsArray, $betType)
|
|
|
{
|