From f253ecd12eace594c354c5011bac903109aac60b Mon Sep 17 00:00:00 2001 From: 王智 <wz@bronet.cn> Date: Fri, 12 Mar 2021 21:36:50 +0800 Subject: [PATCH] 文档修改 --- application/api/controller/Cards.php | 1 - application/common/controller/Api.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/application/api/controller/Cards.php b/application/api/controller/Cards.php index fe1a4ad..5b75f3b 100644 --- a/application/api/controller/Cards.php +++ b/application/api/controller/Cards.php @@ -129,7 +129,6 @@ class Cards extends Api $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); } // $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); - $data = [ 'Avatar' => $UserInfo['avatar'], 'Nickname' => $UserInfo['nickname'], diff --git a/application/common/controller/Api.php b/application/common/controller/Api.php index e278baa..951ccd5 100644 --- a/application/common/controller/Api.php +++ b/application/common/controller/Api.php @@ -654,7 +654,7 @@ class Api ]; $MiniAppQrcodeVendor = $this->curlPost1($url, $Json); $PayOrder = $this->PayOrder(); - $path = './MiniAppQrCode/' . $PayOrder . '.png'; + $path = './MiniAppQrCode/' . $UserId . $Path . '.png'; $res = file_put_contents($path, $MiniAppQrcodeVendor);//将微信返回的图片数据流写入文件 if ($res === false) { $this->error('生成小程序码失败', 0); -- libgit2 0.24.0