正在显示
2 个修改的文件
包含
1 行增加
和
2 行删除
@@ -129,7 +129,6 @@ class Cards extends Api | @@ -129,7 +129,6 @@ class Cards extends Api | ||
129 | $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); | 129 | $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); |
130 | } | 130 | } |
131 | // $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); | 131 | // $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); |
132 | - | ||
133 | $data = [ | 132 | $data = [ |
134 | 'Avatar' => $UserInfo['avatar'], | 133 | 'Avatar' => $UserInfo['avatar'], |
135 | 'Nickname' => $UserInfo['nickname'], | 134 | 'Nickname' => $UserInfo['nickname'], |
@@ -654,7 +654,7 @@ class Api | @@ -654,7 +654,7 @@ class Api | ||
654 | ]; | 654 | ]; |
655 | $MiniAppQrcodeVendor = $this->curlPost1($url, $Json); | 655 | $MiniAppQrcodeVendor = $this->curlPost1($url, $Json); |
656 | $PayOrder = $this->PayOrder(); | 656 | $PayOrder = $this->PayOrder(); |
657 | - $path = './MiniAppQrCode/' . $PayOrder . '.png'; | 657 | + $path = './MiniAppQrCode/' . $UserId . $Path . '.png'; |
658 | $res = file_put_contents($path, $MiniAppQrcodeVendor);//将微信返回的图片数据流写入文件 | 658 | $res = file_put_contents($path, $MiniAppQrcodeVendor);//将微信返回的图片数据流写入文件 |
659 | if ($res === false) { | 659 | if ($res === false) { |
660 | $this->error('生成小程序码失败', 0); | 660 | $this->error('生成小程序码失败', 0); |
-
请 注册 或 登录 后发表评论