| xqd
@@ -150,7 +150,7 @@ class AlbumPosterController extends Controller
|
|
|
]);
|
|
|
|
|
|
if ($response instanceof \EasyWeChat\Kernel\Http\StreamResponse) {
|
|
|
- if (file_exists(public_path() . '/base/poster/QrCode/' . $store_id)) {
|
|
|
+ if (!file_exists(public_path() . '/base/poster/QrCode/' . $store_id)) {
|
|
|
mkdir(public_path() . '/base/poster/QrCode/' . $store_id, 0755, true);
|
|
|
}
|
|
|
$filename = $response->saveAs(public_path() . '/base/poster/QrCode/' . $store_id . "/", "$user_id.png");
|