dyjh 6 rokov pred
rodič
commit
d291aa7fb3

+ 1 - 2
app/Http/Controllers/Api/V1/AlbumPosterController.php

xqd
@@ -191,13 +191,12 @@ class AlbumPosterController extends Controller
             AlbumWatchRecord::create($add_record);
         }
 
-        $info = AlbumPosterModel::where('store_id', $store_id)->first()->toArray();
         $editor = Grafika::createEditor();
 
         $WeChatApp = AlbumManufacturerModel::where('store_id', $store_id)->first();
 
         if ($agent_id == 0) {
-            $editor->open($image_qrcode, str_replace(env('CDN_URL'), public_path(), $info['qrcode']));
+            $editor->open($image_qrcode, str_replace(env('CDN_URL'), public_path(), $WeChatApp->qrcode));
             $editor->resizeExactWidth($image_qrcode, 430);
             $editor->resizeExactHeight($image_qrcode, 430);
         } else {