chore(addon): 同步华为云第1台服务器上的addon代码
This commit is contained in:
@@ -44,7 +44,7 @@ class Poster extends BaseModel
|
||||
[
|
||||
'action' => 'imageCopy', // 背景图
|
||||
'data' => [
|
||||
'upload/poster/bg/fenxiao_3.png',
|
||||
'upload/poster/bg/fenxiao_2.png',
|
||||
0,
|
||||
0,
|
||||
720,
|
||||
@@ -125,18 +125,18 @@ class Poster extends BaseModel
|
||||
1
|
||||
]
|
||||
],
|
||||
// [
|
||||
// 'action' => 'imageText', // 写入分享语
|
||||
// 'data' => [
|
||||
// $params[ 'template_json' ][ 'share_content' ],
|
||||
// $params[ 'template_json' ][ 'share_content_font_size' ] * $fontRate * 2,
|
||||
// is_array($params[ 'template_json' ][ 'share_content_color' ]) ? $params[ 'template_json' ][ 'share_content_color' ] : hex2rgb($params[ 'template_json' ][ 'share_content_color' ]),
|
||||
// $params[ 'template_json' ][ 'share_content_left' ] * 2,
|
||||
// ( $params[ 'template_json' ][ 'share_content_top' ] + $params[ 'template_json' ][ 'share_content_font_size' ] ) * 2,
|
||||
// $params[ 'template_json' ][ 'share_content_width' ] * 2,
|
||||
// 1
|
||||
// ]
|
||||
// ],
|
||||
[
|
||||
'action' => 'imageText', // 写入分享语
|
||||
'data' => [
|
||||
$params[ 'template_json' ][ 'share_content' ],
|
||||
$params[ 'template_json' ][ 'share_content_font_size' ] * $fontRate * 2,
|
||||
is_array($params[ 'template_json' ][ 'share_content_color' ]) ? $params[ 'template_json' ][ 'share_content_color' ] : hex2rgb($params[ 'template_json' ][ 'share_content_color' ]),
|
||||
$params[ 'template_json' ][ 'share_content_left' ] * 2,
|
||||
( $params[ 'template_json' ][ 'share_content_top' ] + $params[ 'template_json' ][ 'share_content_font_size' ] ) * 2,
|
||||
$params[ 'template_json' ][ 'share_content_width' ] * 2,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
'action' => 'imageCopy', // 写入用户头像
|
||||
'data' => [
|
||||
@@ -179,7 +179,7 @@ class Poster extends BaseModel
|
||||
$pic_name = "_" . $pic_name;
|
||||
}
|
||||
|
||||
$res = $option_res->jpeg('upload/poster/distribution', 'distribution_0516' . $qrcode_param[ 'source_member' ] . $pic_name . '_' . $app_type);
|
||||
$res = $option_res->jpeg('upload/poster/distribution', 'distribution_' . $qrcode_param[ 'source_member' ] . $pic_name . '_' . $app_type);
|
||||
if ($res[ 'code' ] == 0) {
|
||||
$upload = new Upload($site_id);
|
||||
$cloud_res = $upload->fileCloud($res[ 'data' ][ 'path' ]);
|
||||
|
||||
Reference in New Issue
Block a user