From 9786d794b330148f2a75b22d482e43dd1b34a866 Mon Sep 17 00:00:00 2001 From: caohongliang Date: Wed, 6 Jun 2018 11:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E7=A0=81=E4=BD=9C=E4=B8=BA=E9=BB=98=E8=AE=A4token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Toplan/LaravelSms/SmsManagerServiceProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Toplan/LaravelSms/SmsManagerServiceProvider.php b/src/Toplan/LaravelSms/SmsManagerServiceProvider.php index e342657..7f6dd53 100644 --- a/src/Toplan/LaravelSms/SmsManagerServiceProvider.php +++ b/src/Toplan/LaravelSms/SmsManagerServiceProvider.php @@ -44,6 +44,9 @@ public function register() $token = $app->request->header('access-token', null); if (empty($token)) { $token = $app->request->input('access_token', null); + if(empty($token)) { + $token = $app->request->input('phone', null); + } } $input = $app->request->all();