From 1f8f14b0e9a1d6f67bdec928f412222eaab86a1b Mon Sep 17 00:00:00 2001 From: wyongk <937888580@qq.com> Date: Sat, 12 Dec 2020 17:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Realname.php | 2 +- fastphp/func/common.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/api/controller/Realname.php b/app/api/controller/Realname.php index 09299c5..223251b 100644 --- a/app/api/controller/Realname.php +++ b/app/api/controller/Realname.php @@ -11,7 +11,7 @@ class Realname public function index() { $temp = $_GET; - dump($temp);die; + dump(realname($temp));die; $user = new User; $data = [ 'Code'=>10000, diff --git a/fastphp/func/common.php b/fastphp/func/common.php index 5859864..0369955 100644 --- a/fastphp/func/common.php +++ b/fastphp/func/common.php @@ -130,12 +130,13 @@ function realname($data){ $result = json_decode($content,true); if($result){ if($result['error_code']=='0'){ - print_r($result); + // print_r($result); + return true; }else{ - echo $result['error_code'].":".$result['reason']; + echo $result['error_code'].":".$result['reason'];die; } }else{ - echo "请求失败"; + echo "请求失败";die; } }