|
|
@@ -103,6 +103,22 @@ class MoneyBuy extends Model {
|
|
|
$moneyBuySpxWhere[] = ['status','>',1];
|
|
|
// $moneyBuySpxWhere[] = ['roll_ratify','=',-1];
|
|
|
}
|
|
|
+ //追加按球类查询订单
|
|
|
+ if($_POST['game_code'] != ''){
|
|
|
+ $moneyBuySpxWhere[] = ['game_code','=',$_POST['game_code']];
|
|
|
+ }
|
|
|
+ //按订单查询
|
|
|
+ if($_POST['order_id'] != ''){
|
|
|
+ $moneyBuySpxWhere[] = ['order_id','=',$_POST['order_id']];
|
|
|
+ }
|
|
|
+ //按赛事查询
|
|
|
+ if($_POST['match_id'] != ''){
|
|
|
+ $moneyBuySpxWhere[] = ['match_id','=',$_POST['match_id']];
|
|
|
+ }
|
|
|
+ //按玩法查询
|
|
|
+ // if($_POST['p_code'] != ''){
|
|
|
+ // $moneyBuySpxWhere[] = ['p_code','=',$_POST['p_code']];
|
|
|
+ // }
|
|
|
|
|
|
//===end===
|
|
|
|
|
|
@@ -328,6 +344,21 @@ class MoneyBuy extends Model {
|
|
|
if($set_status == -1){//无效注单
|
|
|
$moneyBuyStrWhere[] = ['status','>',1];
|
|
|
}
|
|
|
+ /*
|
|
|
+ //追加按球类查询订单
|
|
|
+ if($_POST['game_code'] != ''){
|
|
|
+ $moneyBuyStrWhere[] = ['game_code','=',$_POST['game_code']];
|
|
|
+ }
|
|
|
+ //按赛事查询
|
|
|
+ if($_POST['match_id'] != ''){
|
|
|
+ $moneyBuyStrWhere[] = ['match_id','=',$_POST['match_id']];
|
|
|
+ }
|
|
|
+ */
|
|
|
+ //按订单查询
|
|
|
+ if($_POST['order_id'] != ''){
|
|
|
+ $moneyBuyStrWhere[] = ['order_id','=',$_POST['order_id']];
|
|
|
+ }
|
|
|
+
|
|
|
//===end===
|
|
|
|
|
|
// 用户ID
|