Procházet zdrojové kódy

商品海报,用户海报

lizhen_gitee před 1 rokem
rodič
revize
da6b28d51f

+ 8 - 8
application/api/controller/Product.php

@@ -58,7 +58,7 @@ class Product extends Api
         $data = [
             [
                 "left"=> "0px",
-                "top"=> "10px",
+                "top"=> "0px",
                 "type"=> "img",
                 "width"=> "320px",
                 "height"=> "320px",
@@ -66,15 +66,15 @@ class Product extends Api
             ],
             [
                 "left"=> "10px",
-                "top"=> "340px",
+                "top"=> "330px",
                 "type"=> "img",
                 "width"=> "100px",
                 "height"=> "100px",
-                "src"=> localpath_to_netpath('/assets/img/posterlogo.png')//"https://metavision.oss-cn-hongkong.aliyuncs.com/uploads/20220615/f00cb545deb4c4e7296f444239d83e84.jpg"
+                "src"=> httpurllocal('/assets/img/posterlogo.png')//"https://metavision.oss-cn-hongkong.aliyuncs.com/uploads/20220615/f00cb545deb4c4e7296f444239d83e84.jpg"
             ],
             [
                 "left"=> "5px",
-                "top"=> "450px",
+                "top"=> "440px",
                 "type"=> "nickname",
                 "width"=> "166px",
                 "height"=> "38px",
@@ -84,7 +84,7 @@ class Product extends Api
             ],
             [
                 "left"=> "10px",
-                "top"=> "470px",
+                "top"=> "460px",
                 "type"=> "nickname",
                 "width"=> "166px",
                 "height"=> "38px",
@@ -94,7 +94,7 @@ class Product extends Api
             ],
             [
                 "left"=> "10px",
-                "top"=> "490px",
+                "top"=> "480px",
                 "type"=> "nickname",
                 "width"=> "166px",
                 "height"=> "38px",
@@ -104,7 +104,7 @@ class Product extends Api
             ],
             [
                 "left"=> "200px",
-                "top"=> "340px",
+                "top"=> "330px",
                 "type"=> "img",
                 "width"=> "110px",
                 "height"=> "110px",
@@ -112,7 +112,7 @@ class Product extends Api
             ],
             [
                 "left"=> "205px",
-                "top"=> "455px",
+                "top"=> "445px",
                 "type"=> "nickname",
                 "width"=> "166px",
                 "height"=> "38px",

+ 1 - 1
application/api/controller/Usercenter.php

@@ -24,7 +24,7 @@ class Usercenter extends Api
     //生成我的视频海报
     //生成邀请码二维码图片
     public function inviteimage($introcode) {
-        $params['text'] = config('h5_url') . '/#/pages/home/index?introcode=' . $introcode;
+        $params['text'] = config('h5_url') . '/#/pages/login/register?introcode=' . $introcode;
         $qrcode_service = \addons\qrcode\library\Service::qrcode($params);
 //        $mimetype = 'image/png';
 //        $response = Response::create()->header("Content-Type", $mimetype);