作者 王智

文档修改

... ... @@ -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'],
... ...
... ... @@ -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);
... ...