From b9846a15d567414678f33146b5b3d03487b34e83 Mon Sep 17 00:00:00 2001 From: 王智 <wz@bronet.cn> Date: Fri, 12 Mar 2021 21:35:15 +0800 Subject: [PATCH] 文档修改 --- application/api/controller/Cards.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/application/api/controller/Cards.php b/application/api/controller/Cards.php index 54b353a..09cded8 100644 --- a/application/api/controller/Cards.php +++ b/application/api/controller/Cards.php @@ -121,13 +121,15 @@ class Cards extends Api $UserId = $this->is_token($this->request->header()); $params = $this->request->param(); $UserInfo = Db::name('user')->where('id', $UserId)->find(); - $is_invite_code = '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; - if (file_exists($is_invite_code) == true) { - $MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; - } else { - //小程序码 - $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); - } +// $is_invite_code = '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; +// if (file_exists($is_invite_code) == true) { +// $MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; +// } else { +// //小程序码 +// $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); +// } + $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); + $data = [ 'Avatar' => $UserInfo['avatar'], 'Nickname' => $UserInfo['nickname'], -- libgit2 0.24.0