|
@@ -191,13 +191,12 @@ class AlbumPosterController extends Controller
|
|
AlbumWatchRecord::create($add_record);
|
|
AlbumWatchRecord::create($add_record);
|
|
}
|
|
}
|
|
|
|
|
|
- $info = AlbumPosterModel::where('store_id', $store_id)->first()->toArray();
|
|
|
|
$editor = Grafika::createEditor();
|
|
$editor = Grafika::createEditor();
|
|
|
|
|
|
$WeChatApp = AlbumManufacturerModel::where('store_id', $store_id)->first();
|
|
$WeChatApp = AlbumManufacturerModel::where('store_id', $store_id)->first();
|
|
|
|
|
|
if ($agent_id == 0) {
|
|
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->resizeExactWidth($image_qrcode, 430);
|
|
$editor->resizeExactHeight($image_qrcode, 430);
|
|
$editor->resizeExactHeight($image_qrcode, 430);
|
|
} else {
|
|
} else {
|