Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
goods
Commits
f70de688
Commit
f70de688
authored
Jul 28, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
update:Set
parents
32ba2ef9
b82ad2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GetImage.php
vendor/api/php_services/src/ShopImage/GetImage.php
+4
-4
No files found.
vendor/api/php_services/src/ShopImage/GetImage.php
View file @
f70de688
...
@@ -173,17 +173,17 @@ class GetImage
...
@@ -173,17 +173,17 @@ class GetImage
// 底部二维码
// 底部二维码
$qr
=
new
QR
(
$qr_string
);
$qr
=
new
QR
(
$qr_string
);
$qr_size
=
1
00
;
$qr_size
=
2
00
;
$qr
->
setSize
(
$qr_size
);
$qr
->
setSize
(
$qr_size
);
$qr
->
setRoundBlockSize
(
QrCode
::
ROUND_BLOCK_SIZE_MODE_MARGIN
);
$qr
->
setRoundBlockSize
(
QrCode
::
ROUND_BLOCK_SIZE_MODE_MARGIN
);
$qr_string
=
$qr
->
get
();
$qr_string
=
$qr
->
get
();
$qr_img
=
imagecreatefromstring
(
$qr_string
);
$qr_img
=
imagecreatefromstring
(
$qr_string
);
list
(
$qr_w
,
$qr_h
)
=
getimagesizefromstring
(
$qr_string
);
list
(
$qr_w
,
$qr_h
)
=
getimagesizefromstring
(
$qr_string
);
imagecopyresized
(
$im
,
$qr_img
,
49
,
1102
,
0
,
0
,
$qr_size
,
$qr_size
,
$qr_size
,
$qr_size
);
imagecopyresized
(
$im
,
$qr_img
,
0
,
1055
,
0
,
0
,
$qr_size
,
$qr_size
,
$qr_size
,
$qr_size
);
// 底部文字
// 底部文字
imagettftext
(
$im
,
21
,
0
,
1
95
,
1160
,
333333
,
$this
->
font_m
,
"长按扫码快速抢券"
);
imagettftext
(
$im
,
21
,
0
,
2
95
,
1160
,
333333
,
$this
->
font_m
,
"长按扫码快速抢券"
);
imagettftext
(
$im
,
16
,
0
,
1
95
,
1200
,
666666
,
$this
->
font_r
,
"分享自 生活圈APP"
);
imagettftext
(
$im
,
16
,
0
,
2
95
,
1200
,
666666
,
$this
->
font_r
,
"分享自 生活圈APP"
);
// 底部logo
// 底部logo
$logo_path
=
__DIR__
.
'/images/3_logo.png'
;
$logo_path
=
__DIR__
.
'/images/3_logo.png'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment