| xqd
@@ -215,13 +215,13 @@ class AlbumPosterController extends Controller
|
|
|
$name = $agent_check->realname;
|
|
|
$phone = $agent_check->phone;
|
|
|
}
|
|
|
- $editor->text($image_poster, $phone, 12, 29, 264, new Color("#eb7a48"), $font, 0);
|
|
|
- $editor->text($image_poster, '长按识别二维码 展示家具画册', 8, 5, 309, new Color("#666666"), $font, 0);
|
|
|
+ $editor->text($image_poster, $phone, 12, 29, 274, new Color("#eb7a48"), $font, 0);
|
|
|
+ $editor->text($image_poster, '长按识别二维码 展示家具画册', 8, 5, 316, new Color("#666666"), $font, 0);
|
|
|
$editor->open($image_qrcode, str_replace(env('CDN_URL'), public_path(), $info['qrcode']));
|
|
|
$editor->resizeExactWidth($image_qrcode, 70);
|
|
|
$editor->resizeExactHeight($image_qrcode, 70);
|
|
|
$editor->blend($image_poster, $image_qrcode, 'normal', 1, 'top-left', 150, 235);
|
|
|
- $editor->text($image_poster, $name, 8, 155, 316, new Color("#666666"), $font, 0);
|
|
|
+ $editor->text($image_poster, $name, 8, 188 - (11 * (mb_strlen($name) / 2)), 316, new Color("#666666"), $font, 0);
|
|
|
$editor->save($image_poster, public_path() . '/base/poster/download/' . $userAuth->id . '.png');
|
|
|
$real_url = env('CDN_URL') . '/base/poster/download/' . $userAuth->id . '.png';
|
|
|
return $this->api(compact('real_url'));
|