|
@@ -77,7 +77,7 @@ class GiftCardQrCodeService
|
|
|
if ($httpCode === 200) {
|
|
if ($httpCode === 200) {
|
|
|
// 检查是否为JSON错误响应
|
|
// 检查是否为JSON错误响应
|
|
|
$jsonData = json_decode($response, true);
|
|
$jsonData = json_decode($response, true);
|
|
|
- return $jsonData;
|
|
|
|
|
|
|
+ return 'uploads/images/20210916155724c7c957880.jpg';
|
|
|
if ($jsonData && isset($jsonData['errcode'])) {
|
|
if ($jsonData && isset($jsonData['errcode'])) {
|
|
|
Log::error('微信API错误', $jsonData);
|
|
Log::error('微信API错误', $jsonData);
|
|
|
return false;
|
|
return false;
|
|
@@ -132,6 +132,7 @@ class GiftCardQrCodeService
|
|
|
if (file_exists($localPath)) {
|
|
if (file_exists($localPath)) {
|
|
|
unlink($localPath);
|
|
unlink($localPath);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
return $remotePath;
|
|
return $remotePath;
|
|
|
} else {
|
|
} else {
|
|
|
Log::error('上传到七牛云失败', [
|
|
Log::error('上传到七牛云失败', [
|