From 4eb6bdb95ad56170e237c9870e561602ae40e41b Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Mon, 10 Oct 2022 18:33:26 +0800 Subject: [PATCH] edit-sylive --- home/controllers/h5/market/sylive/Act.php | 11 ++++++++--- home/views/h5/market/sylive/act/index.php | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/home/controllers/h5/market/sylive/Act.php b/home/controllers/h5/market/sylive/Act.php index ec971f6e..24db82cb 100644 --- a/home/controllers/h5/market/sylive/Act.php +++ b/home/controllers/h5/market/sylive/Act.php @@ -197,11 +197,16 @@ class Act extends Wx { $share_url = http_host_com('home') . "/h5/market/sylive/act?skey=" . $this->myencryption->base64url_encode($share_skey); $qr_code = '/h5/market/sylive/myqrcode/get?url=' . $share_url; foreach ($shareImg as $item) { + $img_url = build_qiniu_image_url($item); + $img_info = file_get_contents($img_url.'?imageInfo'); + if($img_info){ + $img_info = json_decode($img_info,true); + } $lists[] = [ - "img" => build_qiniu_image_url($item), + "img" => $img_url, "code" => $qr_code, - 'width' => 750, - 'height' => 1130, + 'width' => $img_info['width'] ? $img_info['width'] : 750, + 'height' => $img_info['height'] ? $img_info['height'] : 1130, ]; } } diff --git a/home/views/h5/market/sylive/act/index.php b/home/views/h5/market/sylive/act/index.php index df9711f3..ce23832b 100644 --- a/home/views/h5/market/sylive/act/index.php +++ b/home/views/h5/market/sylive/act/index.php @@ -18,8 +18,8 @@
- --> + -->