|
@@ -35,8 +35,8 @@ class SoccerStringNoteListController extends Controller
|
|
|
$dt->setLang('sportsnotelist');
|
|
$dt->setLang('sportsnotelist');
|
|
|
//$dt->addColsFields('id', array('templet' => '#userdetail', 'sort' => true, 'width' => 80));
|
|
//$dt->addColsFields('id', array('templet' => '#userdetail', 'sort' => true, 'width' => 80));
|
|
|
$dt->addColsFields('order_id', array('templet' => '#userdetail', 'sort' => true, 'width' => 200));
|
|
$dt->addColsFields('order_id', array('templet' => '#userdetail', 'sort' => true, 'width' => 200));
|
|
|
- $dt->addColsFields('str_type', array('templet' => '#userdetail', 'sort' => false, 'width' => 90));
|
|
|
|
|
- $dt->addColsFields('detail_content', array('sort' => false, 'width' => 150));
|
|
|
|
|
|
|
+ $dt->addColsFields('str_type', array('templet' => '#userdetail', 'sort' => false, 'width' => 70));
|
|
|
|
|
+ $dt->addColsFields('detail_content', array('sort' => false, 'width' => 140));
|
|
|
$dt->addColsFields('money', array('templet' => '#userdetail', 'sort' => false, 'width' => 90));
|
|
$dt->addColsFields('money', array('templet' => '#userdetail', 'sort' => false, 'width' => 90));
|
|
|
$dt->addColsFields('water_return', array('templet' => '#userdetail', 'sort' => false, 'width' => 90));
|
|
$dt->addColsFields('water_return', array('templet' => '#userdetail', 'sort' => false, 'width' => 90));
|
|
|
$dt->addColsFields('prize_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 120));
|
|
$dt->addColsFields('prize_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 120));
|
|
@@ -44,7 +44,7 @@ class SoccerStringNoteListController extends Controller
|
|
|
$dt->addColsFields('money_time', array('templet' => '#userdetail', 'sort' => false, 'width' => 200));
|
|
$dt->addColsFields('money_time', array('templet' => '#userdetail', 'sort' => false, 'width' => 200));
|
|
|
$dt->addColsFields('order_status', array('sort' => false, 'width' => 90));
|
|
$dt->addColsFields('order_status', array('sort' => false, 'width' => 90));
|
|
|
$dt->addColsFields('account_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 230));
|
|
$dt->addColsFields('account_money', array('templet' => '#userdetail', 'sort' => false, 'width' => 230));
|
|
|
- $dt->addColsFields('settle_status', array('sort' => false, 'width' => 80));
|
|
|
|
|
|
|
+ $dt->addColsFields('settle_status', array('sort' => false, 'width' => 120));
|
|
|
// if (checkRriv('/admin/SoccerStringNoteList/edit')) {
|
|
// if (checkRriv('/admin/SoccerStringNoteList/edit')) {
|
|
|
// $arr[] ='edit';
|
|
// $arr[] ='edit';
|
|
|
// }
|
|
// }
|
|
@@ -197,12 +197,22 @@ class SoccerStringNoteListController extends Controller
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
$order = \App\Models\MoneyBuyStr::where('id', $id)->first();
|
|
$order = \App\Models\MoneyBuyStr::where('id', $id)->first();
|
|
|
|
|
+ $match = \App\Models\MoneyBuyMatch::where('batch_id',$order->batch_id)->where('bet_type','2')->get();
|
|
|
|
|
+ for($i=0;$i<count($match);$i++){
|
|
|
|
|
+ $match_id = $match[$i]->match_id;
|
|
|
|
|
+ $game_code = $match[$i]->game_code;
|
|
|
|
|
+ //判断输赢
|
|
|
|
|
+ //$match_ids[] = $match[$i]->match_id;
|
|
|
|
|
+ $comendnotice = new \App\Models\Comendnotice();
|
|
|
|
|
+ $res[] = $comendnotice->addcomendnotice($match_id);
|
|
|
|
|
+ }
|
|
|
$order_ids = array($order->order_id);
|
|
$order_ids = array($order->order_id);
|
|
|
- //return $order_ids;
|
|
|
|
|
|
|
+ //return $match_ids;
|
|
|
|
|
+ //结算
|
|
|
$SettlementOrder = new SettlementOrder();
|
|
$SettlementOrder = new SettlementOrder();
|
|
|
$bet_type = 2; //串关注单
|
|
$bet_type = 2; //串关注单
|
|
|
- $data = $SettlementOrder->reSettlement($order_ids, $bet_type);
|
|
|
|
|
- //dd($SettlementOrder);
|
|
|
|
|
|
|
+ $settype = 1; //首次结算
|
|
|
|
|
+ $data = $SettlementOrder->reSettlement($order_ids,$bet_type,$settype,$game_code,$match_id);
|
|
|
return $data;
|
|
return $data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -215,11 +225,21 @@ class SoccerStringNoteListController extends Controller
|
|
|
return -1;
|
|
return -1;
|
|
|
}
|
|
}
|
|
|
$order = \App\Models\MoneyBuyStr::where('id',$id)->first();
|
|
$order = \App\Models\MoneyBuyStr::where('id',$id)->first();
|
|
|
|
|
+ $match = \App\Models\MoneyBuyMatch::where('batch_id',$order->batch_id)->where('bet_type','2')->get();
|
|
|
|
|
+ for($i=0;$i<count($match);$i++){
|
|
|
|
|
+ $match_id = $match[$i]->match_id;
|
|
|
|
|
+ $game_code = $match[$i]->game_code;
|
|
|
|
|
+ //判断输赢
|
|
|
|
|
+ $comendnotice = new \App\Models\Comendnotice();
|
|
|
|
|
+ $res = $comendnotice->addcomendnotice($match_id);
|
|
|
|
|
+ }
|
|
|
$order_ids = array($order->order_id);
|
|
$order_ids = array($order->order_id);
|
|
|
//return $order_ids;
|
|
//return $order_ids;
|
|
|
|
|
+ //重新结算
|
|
|
$SettlementOrder = new SettlementOrder();
|
|
$SettlementOrder = new SettlementOrder();
|
|
|
$bet_type = 2; //串关注单
|
|
$bet_type = 2; //串关注单
|
|
|
- $data = $SettlementOrder->reSettlement($order_ids,$bet_type);
|
|
|
|
|
|
|
+ $settype = 2; //重新结算
|
|
|
|
|
+ $data = $SettlementOrder->reSettlement($order_ids,$bet_type,$settype,$game_code,$match_id);
|
|
|
return $data;
|
|
return $data;
|
|
|
}
|
|
}
|
|
|
|
|
|