From abdf68a91c221bc3ad97a50ee2e43bbc76708a3c Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 22 Nov 2019 20:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E5=9B=9E=E7=BB=91=E5=B8=81=E7=8E=A9?= =?UTF-8?q?=E5=AE=B6=E8=B4=A6=E5=8F=B7select=E6=A1=86=E6=94=B9=E4=B8=BAinp?= =?UTF-8?q?ut=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/AjaxController.class.php | 2 +- .../View/DeductBindRecord/deductBindBalance.html | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php index 685ad3c6a..8db3fc557 100644 --- a/Application/Admin/Controller/AjaxController.class.php +++ b/Application/Admin/Controller/AjaxController.class.php @@ -103,7 +103,7 @@ class AjaxController extends ThinkController{ } public function getUserPlayGameName($user_id=0){ - $map['user_id'] = $user_id; + $map['user_account'] = $user_id; $data = M("UserPlay","tab_")->field("game_id,game_name,bind_balance")->where($map)->group('user_id,game_id')->select(); $this->AjaxReturn($data); } diff --git a/Application/Admin/View/DeductBindRecord/deductBindBalance.html b/Application/Admin/View/DeductBindRecord/deductBindBalance.html index f426a7086..c6a001e74 100644 --- a/Application/Admin/View/DeductBindRecord/deductBindBalance.html +++ b/Application/Admin/View/DeductBindRecord/deductBindBalance.html @@ -49,12 +49,13 @@ 玩家账号: - + + + + + + + @@ -144,7 +145,7 @@ $(function(){ //$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币'); $('#user_id').change(function(){ //$(".balance").text($('#user_id option:selected').attr('coin-balance')+'平台币'); - var user_id = $('#user_id option:selected').attr('value'); + var user_id = $('#user_id').val(); if(this.value !="请选择账号"){ getUserPlayGameName(user_id);