From 3b82ca09b8a59e549d504f1175e499de97930d6f Mon Sep 17 00:00:00 2001 From: 王智 <wz@bronet.cn> Date: Fri, 12 Mar 2021 21:37:20 +0800 Subject: [PATCH] 文档修改 --- application/api/controller/Cards.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/application/api/controller/Cards.php b/application/api/controller/Cards.php index 5b75f3b..09cded8 100644 --- a/application/api/controller/Cards.php +++ b/application/api/controller/Cards.php @@ -121,14 +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']); - } -// $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $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