|
|
@@ -206,42 +206,34 @@ class UserBillController
|
|
|
array(
|
|
|
'url' => $urlCode, //二维码资源
|
|
|
'stream' => 0,
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 320, // 调整位置
|
|
|
+ 'left' => 80, // 调整到左上角位置
|
|
|
+ 'top' => 80, // 调整到左上角位置
|
|
|
'right' => 0,
|
|
|
'bottom' => 0,
|
|
|
- 'width' => 120,
|
|
|
- 'height' => 120,
|
|
|
+ 'width' => 80, // 缩小二维码尺寸
|
|
|
+ 'height' => 80, // 缩小二维码尺寸
|
|
|
'opacity' => 100
|
|
|
)
|
|
|
),
|
|
|
'text' => array(
|
|
|
- // 添加顶部标题
|
|
|
- array(
|
|
|
- 'text' => '邀请好友',
|
|
|
- 'left' => 150, // 居中
|
|
|
- 'top' => 40, // 顶部位置
|
|
|
- 'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],
|
|
|
- 'fontSize' => 30, // 大字体
|
|
|
- 'fontColor' => '139,69,19', // 棕色
|
|
|
- 'angle' => 0,
|
|
|
- ),
|
|
|
+ // 移除"邀请好友"标题
|
|
|
+ // 保留用户信息文字,但调整位置
|
|
|
array(
|
|
|
'text' => $user['nickname'],
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 240, // 调整位置
|
|
|
+ 'left' => 250,
|
|
|
+ 'top' => 840,
|
|
|
'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],
|
|
|
- 'fontSize' => 18, // 稍大字体
|
|
|
- 'fontColor' => '64,64,64',
|
|
|
+ 'fontSize' => 16,
|
|
|
+ 'fontColor' => '40,40,40',
|
|
|
'angle' => 0,
|
|
|
),
|
|
|
array(
|
|
|
'text' => '邀请您加入' . sys_config('site_name'),
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 270, // 调整位置
|
|
|
+ 'left' => 250,
|
|
|
+ 'top' => 880,
|
|
|
'fontPath' => $rootPath . 'public' . DS . $filelink['Normal'],
|
|
|
'fontSize' => 16,
|
|
|
- 'fontColor' => '64,64,64',
|
|
|
+ 'fontColor' => '40,40,40',
|
|
|
'angle' => 0,
|
|
|
)
|
|
|
),
|
|
|
@@ -302,42 +294,33 @@ class UserBillController
|
|
|
array(
|
|
|
'url' => $urlCode, //二维码资源
|
|
|
'stream' => 0,
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 320, // 调整位置
|
|
|
+ 'left' => 80, // 调整到左上角位置(根据新参考图)
|
|
|
+ 'top' => 80, // 调整到左上角位置(根据新参考图)
|
|
|
'right' => 0,
|
|
|
'bottom' => 0,
|
|
|
- 'width' => 120,
|
|
|
- 'height' => 120,
|
|
|
+ 'width' => 80, // 缩小二维码尺寸(根据新参考图)
|
|
|
+ 'height' => 80, // 缩小二维码尺寸(根据新参考图)
|
|
|
'opacity' => 100
|
|
|
)
|
|
|
),
|
|
|
'text' => array(
|
|
|
- // 添加顶部标题
|
|
|
+ // 移除所有文字,保持简洁
|
|
|
array(
|
|
|
- 'text' => '邀请好友',
|
|
|
- 'left' => 150, // 居中
|
|
|
- 'top' => 40, // 顶部位置
|
|
|
+ 'text' => '', // 空字符串,不显示用户名
|
|
|
+ 'left' => 0,
|
|
|
+ 'top' => 0,
|
|
|
'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],
|
|
|
- 'fontSize' => 30, // 大字体
|
|
|
- 'fontColor' => '139,69,19', // 棕色
|
|
|
+ 'fontSize' => 1, // 极小字体,几乎不可见
|
|
|
+ 'fontColor' => '255,255,255', // 白色文字,与背景融合
|
|
|
'angle' => 0,
|
|
|
),
|
|
|
array(
|
|
|
- 'text' => $user['nickname'],
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 240, // 调整位置
|
|
|
- 'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],
|
|
|
- 'fontSize' => 18, // 稍大字体
|
|
|
- 'fontColor' => '64,64,64',
|
|
|
- 'angle' => 0,
|
|
|
- ),
|
|
|
- array(
|
|
|
- 'text' => '邀请您加入' . sys_config('site_name'),
|
|
|
- 'left' => 150, // 调整为居中
|
|
|
- 'top' => 270, // 调整位置
|
|
|
+ 'text' => '', // 空字符串,不显示邀请文案
|
|
|
+ 'left' => 0,
|
|
|
+ 'top' => 0,
|
|
|
'fontPath' => $rootPath . 'public' . DS . $filelink['Normal'],
|
|
|
- 'fontSize' => 16,
|
|
|
- 'fontColor' => '64,64,64',
|
|
|
+ 'fontSize' => 1, // 极小字体,几乎不可见
|
|
|
+ 'fontColor' => '255,255,255', // 白色文字,与背景融合
|
|
|
'angle' => 0,
|
|
|
)
|
|
|
),
|
|
|
@@ -357,11 +340,11 @@ class UserBillController
|
|
|
if ($resRoutine && $resWap) return app('json')->successful($routineSpreadBanner);
|
|
|
else return app('json')->fail('生成图片失败');
|
|
|
} catch (\Exception $e) {
|
|
|
+ @file_put_contents('quanju.txt', json_encode(['line' => $e->getLine(), 'message' => $e->getMessage(), 'file' => $e->getFile()]) . "-报错内容\r\n", 8);
|
|
|
return app('json')->fail('生成图片时,系统错误', ['line' => $e->getLine(), 'message' => $e->getMessage(), 'file' => $e->getFile()]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 积分记录
|
|
|
* @param Request $request
|