From eb5b868eada0d9ac5332f4da9f0f6d9171ae2b5a Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 27 Apr 2020 13:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/BaseController.class.php | 2 +- Application/Sdk/Controller/UserController.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Sdk/Controller/BaseController.class.php b/Application/Sdk/Controller/BaseController.class.php index 2a7f954c..5c95ccab 100644 --- a/Application/Sdk/Controller/BaseController.class.php +++ b/Application/Sdk/Controller/BaseController.class.php @@ -16,7 +16,7 @@ class BaseController extends RestController{ ]; protected $noToken = [ - 'user_login','user_login_new', 'send_sms', 'verify_sms', 'forget_password', + 'user_login','user_login_new', 'user_login_old', 'send_sms', 'verify_sms', 'forget_password', 'init_sdk', 'device_record', 'force_update', 'thirdparty', 'get_customer_question', 'get_down_time', 'customer_contact', 'user_info','customer_question_list','user_phone_register' ]; diff --git a/Application/Sdk/Controller/UserController.class.php b/Application/Sdk/Controller/UserController.class.php index a74ca647..2198c2e8 100644 --- a/Application/Sdk/Controller/UserController.class.php +++ b/Application/Sdk/Controller/UserController.class.php @@ -19,7 +19,7 @@ use Base\Service\UserService; class UserController extends BaseController { - public function user_login() + public function user_login_new() { $params = json_decode(base64_decode(file_get_contents("php://input")), true); @@ -48,7 +48,7 @@ class UserController extends BaseController /** *SDK用户登录 */ - public function user_login_old() + public function user_login() { $count = Redis::incr(Redis::KEY_LOGIN_LIMIT); if ($count >= 300) {