|
@@ -15,8 +15,8 @@ class Userintro extends Api
|
|
|
|
|
|
//生成我的视频海报
|
|
|
//生成邀请码二维码图片
|
|
|
- public function inviteimage($introcode) {
|
|
|
- $params['text'] = config('h5_url') . '/#/pages/home/index?introcode=' . $introcode;
|
|
|
+ public function inviteimage() {
|
|
|
+ $params['text'] = config('app_download_url') . '/index/appdownload';
|
|
|
$qrcode_service = \addons\qrcode\library\Service::qrcode($params);
|
|
|
// $mimetype = 'image/png';
|
|
|
// $response = Response::create()->header("Content-Type", $mimetype);
|
|
@@ -39,14 +39,30 @@ class Userintro extends Api
|
|
|
|
|
|
//生成视频分享海报
|
|
|
public function shareposter() {
|
|
|
-
|
|
|
$inviteimage = $this->inviteimage($this->auth->introcode);
|
|
|
|
|
|
$data = [
|
|
|
-
|
|
|
[
|
|
|
- "left"=> "100px",
|
|
|
- "top"=> "424px",
|
|
|
+ "left"=> "140px",
|
|
|
+ "top"=> "120px",
|
|
|
+ "type"=> "img",
|
|
|
+ "width"=> "50px",
|
|
|
+ "height"=> "50px",
|
|
|
+ "src"=> localpath_to_netpath($this->auth->avatar)//"https://metavision.oss-cn-hongkong.aliyuncs.com/uploads/20220615/f00cb545deb4c4e7296f444239d83e84.jpg"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "left"=> "95px",
|
|
|
+ "top"=> "190px",
|
|
|
+ "type"=> "nickname",
|
|
|
+ "width"=> "166px",
|
|
|
+ "height"=> "38px",
|
|
|
+ "size"=> "11px",
|
|
|
+ "color"=> "#FFFFFF",
|
|
|
+ "content" => '这里真心不错,推荐你来',
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "left"=> "105px",
|
|
|
+ "top"=> "400px",
|
|
|
"type"=> "nickname",
|
|
|
"width"=> "166px",
|
|
|
"height"=> "38px",
|
|
@@ -55,11 +71,11 @@ class Userintro extends Api
|
|
|
"content" => '邀请码:'.$this->auth->introcode,
|
|
|
],
|
|
|
[
|
|
|
- "left"=> "90px",
|
|
|
- "top"=> "260px",
|
|
|
+ "left"=> "100px",
|
|
|
+ "top"=> "265px",
|
|
|
"type"=> "img",
|
|
|
- "width"=> "140px",
|
|
|
- "height"=> "140px",
|
|
|
+ "width"=> "130px",
|
|
|
+ "height"=> "130px",
|
|
|
"src"=> httpurllocal($inviteimage)//"https://metavision.oss-cn-hongkong.aliyuncs.com/uploads/20220615/f00cb545deb4c4e7296f444239d83e84.jpg"
|
|
|
],
|
|
|
|
|
@@ -81,7 +97,7 @@ class Userintro extends Api
|
|
|
];
|
|
|
|
|
|
$image = new \addons\poster\library\Image();
|
|
|
- $imgurl = $image->createPosterImage_user($poster, $this->auth->getUser());
|
|
|
+ $imgurl = $image->createPosterImage($poster, $this->auth->getUser());
|
|
|
|
|
|
if (!$imgurl) {
|
|
|
$this->error('生成海报出错');
|