|
@@ -38,7 +38,7 @@ class PosterRepository
|
|
}
|
|
}
|
|
|
|
|
|
// 彩虹豆数
|
|
// 彩虹豆数
|
|
- $bean = 500;
|
|
|
|
|
|
+ $bean = config('customer.share_post_bean');
|
|
$beanWidth = 540;
|
|
$beanWidth = 540;
|
|
if(strlen($bean) == 4) $beanWidth = 532;
|
|
if(strlen($bean) == 4) $beanWidth = 532;
|
|
$main->text($bean, $beanWidth, 1214, function ($font) {
|
|
$main->text($bean, $beanWidth, 1214, function ($font) {
|
|
@@ -132,7 +132,7 @@ class PosterRepository
|
|
$main->insert($new, 'top-left', 105, 436);
|
|
$main->insert($new, 'top-left', 105, 436);
|
|
}
|
|
}
|
|
|
|
|
|
- $qrcode = Image::make(QrCode::format('png')->generate('https://www.jianshu.com/p/1c78294f26f8'));
|
|
|
|
|
|
+ $qrcode = Image::make(QrCode::format('png')->generate(config('customer.share_post_h5url')."?post_id={$id}&invite_code={$userInfo['invite_code']}"));
|
|
|
|
|
|
$qrcode->resize(164,164);
|
|
$qrcode->resize(164,164);
|
|
|
|
|
|
@@ -213,7 +213,7 @@ class PosterRepository
|
|
$main->insert($new, 'top-left', 30, 717);
|
|
$main->insert($new, 'top-left', 30, 717);
|
|
}
|
|
}
|
|
|
|
|
|
- $qrcode = Image::make(QrCode::format('png')->generate('https://www.jianshu.com/p/1c78294f26f8'));
|
|
|
|
|
|
+ $qrcode = Image::make(QrCode::format('png')->generate(config('customer.share_invite_h5url')."?invite_code={$userInfo['invite_code']}"));
|
|
|
|
|
|
$qrcode->resize(170,170);
|
|
$qrcode->resize(170,170);
|
|
|
|
|