From eb21c5cf4e1aaac943c49f6efa289b2a699f5cf9 Mon Sep 17 00:00:00 2001 From: dumplin <1277385101@qq.com> Date: Wed, 9 May 2018 23:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controllers/Admin/UserController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Controllers/Admin/UserController.php b/app/Controllers/Admin/UserController.php index 6e02e369..f80bd83c 100644 --- a/app/Controllers/Admin/UserController.php +++ b/app/Controllers/Admin/UserController.php @@ -307,6 +307,7 @@ class UserController extends AdminController $datatables->edit('reg_location', function ($data) { $user = User::find($data['id']); + $reg_location = $user->reg_ip; $iplocation = new QQWry(); $location=$iplocation->getlocation($reg_location); $reg_location .= "\n".iconv('gbk', 'utf-8//IGNORE', $location['country'].$location['area']);