|
@@ -34,7 +34,7 @@ class SettingController extends Controller
|
|
$share_text_pos = $this->model->firstOrCreate(['key' => 'share_text_pos'], ['key_show' => '文本位置']);
|
|
$share_text_pos = $this->model->firstOrCreate(['key' => 'share_text_pos'], ['key_show' => '文本位置']);
|
|
|
|
|
|
if(!empty($share_image) && !empty($share_image->value) && Storage::disk('upload')->exists($share_image->value)) {
|
|
if(!empty($share_image) && !empty($share_image->value) && Storage::disk('upload')->exists($share_image->value)) {
|
|
- $image = Image::make(url($share_image->val));
|
|
|
|
|
|
+ $image = Image::make(url($share_image->value));
|
|
$width = $image->width();
|
|
$width = $image->width();
|
|
$height = $image->height();
|
|
$height = $image->height();
|
|
} else {
|
|
} else {
|
|
@@ -107,7 +107,7 @@ class SettingController extends Controller
|
|
|
|
|
|
$text = str_replace_array('{days}', [15], $share_text_pos->value);
|
|
$text = str_replace_array('{days}', [15], $share_text_pos->value);
|
|
|
|
|
|
- $image = Image::make(url($share_image->val));
|
|
|
|
|
|
+ $image = Image::make(url($share_image->value));
|
|
|
|
|
|
if($pos[0] > $image->width() || $pos[1] > $image->height()) {
|
|
if($pos[0] > $image->width() || $pos[1] > $image->height()) {
|
|
return $this->showWarning('分享文字位置错误');
|
|
return $this->showWarning('分享文字位置错误');
|