Browse Source

投注测试

彭俊 6 years ago
parent
commit
25a8116fee
2 changed files with 8 additions and 26 deletions
  1. 0 26
      Biz/Common/CommonFunction.php
  2. 8 0
      Biz/Money/Money.php

+ 0 - 26
Biz/Common/CommonFunction.php

@@ -1086,12 +1086,6 @@ class CommonFunction {
             $match_ids[] = $v['match_id'];
         }
         //获取下赛事赔率
-        // $oddsData = lm($models['model_odds'],'Sports')
-        // ->whereIn('match_id',$match_ids)
-        // ->where($oddsTypeWhere)
-        // ->pluck('match_id')
-        // ->toArray();
-
         $oddsData = lm($models['model_odds'],'Sports')
         ->select('match_id')
         ->whereIn('match_id',$match_ids)
@@ -1100,16 +1094,6 @@ class CommonFunction {
         ->get()
         ->toArray();
 
-        // dd($oddsData);
-        // echo count($oddsData);
-        // $oddsData = $this->array_unset_tt($oddsData,'match_id');
-        // sort($oddsData);
-        // echo '</br>';
-        // echo count($oddsData);
-        // echo '</br>';
-        // echo date('Y-m-d H:i:s',time());
-        // exit;
-
          //如果赔率为空,则返回空
          if(empty($oddsData)) return $oddsData;
          $matchData_new = [];
@@ -1134,12 +1118,6 @@ class CommonFunction {
            $lg_ids[] = $v['lg_id'];
        }
        //获取下赛事赔率
-    //    $oddsData = lm($models['model_odds'],'Sports')
-    //    ->whereIn('lg_id',$lg_ids)
-    //    ->where('type',1)
-    //    ->pluck('lg_id')
-    //    ->toArray();
-
        $oddsData = lm($models['model_odds'],'Sports')
        ->select('lg_id')
        ->whereIn('lg_id',$lg_ids)
@@ -1147,10 +1125,6 @@ class CommonFunction {
        ->distinct('lg_id')
        ->get()
        ->toArray();
-
-    //    $oddsData = array_unique($oddsData);
-    //    sort($oddsData);
-
         //如果赔率为空,则返回空
         if(empty($oddsData)) return $oddsData;
         $matchData_new = [];

+ 8 - 0
Biz/Money/Money.php

@@ -70,6 +70,7 @@ class Money {
 		}
 		//更新用户余额
 		$updateAccountMoney = $this->updateAccountMoney($account_identity,$nowMoney, $nowCash);
+		dd($updateAccountMoney);
 		if($updateAccountMoney != 1){
 			return $updateAccountMoney;
 		}else {
@@ -90,6 +91,13 @@ class Money {
 	 */
 	public function updateAccountMoney($account_identity, $nowMoney,$nowCash)
 	{
+		echo '</br>';
+		var_dump($account_identity);
+		echo '</br>';
+		var_dump($nowMoney);
+		echo '</br>';
+		var_dump($nowCash);
+
 		if(empty($account_identity)||empty($nowMoney)||empty($nowCash)){
 			return '-2255';
 		}