Browse Source

投注测试

彭俊 6 năm trước cách đây
mục cha
commit
f6b4e2e200
2 tập tin đã thay đổi với 3 bổ sung10 xóa
  1. 2 0
      Application/Api/Controller/Betorder.php
  2. 1 10
      Biz/Money/Money.php

+ 2 - 0
Application/Api/Controller/Betorder.php

@@ -196,6 +196,7 @@ class Betorder extends BaseController{
                 Render('','3205',lang('errors','Api')->get('error-3205'));
             }
             $insertMoney  = $this->M->insertMoney($userInfo['account_identity'],$bet_money,$OrderID,1,"",$UUID,$userInfo);
+            
             if($insertMoney!=1){
                 Render('', $insertMoney,lang('Errors','Api')->get('error'.$insertMoney));
             }
@@ -204,6 +205,7 @@ class Betorder extends BaseController{
     }
 
     public function Bet(){
+
         //如果获取不到data,则为游戏端提交,需转成数组
         if(!empty($_POST['game_data'])){
             //获取参数转成数组

+ 1 - 10
Biz/Money/Money.php

@@ -56,7 +56,7 @@ class Money {
 		//验证流水金额与余额是否正常
 		$checkWater = $this->checkWater($account_identity,$getAccount['available_cash']);
 		if($checkWater != 1){
-			return $checkWater;
+			// return $checkWater;
 		}
 		//获取money_type
 		$m_type = $this->getMtype($type);
@@ -70,8 +70,6 @@ class Money {
 		}
 		//更新用户余额
 		$updateAccountMoney = $this->updateAccountMoney($account_identity,$nowMoney, $nowCash);
-		var_dump($updateAccountMoney);
-		exit;
 		if($updateAccountMoney != 1){
 			return $updateAccountMoney;
 		}else {
@@ -92,13 +90,6 @@ 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';
 		}