WIN-2308041133\Administrator 3 weeks ago
parent
commit
d5fde16ce2
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/api/controller/user/UserBillController.php

+ 4 - 2
app/api/controller/user/UserBillController.php

@@ -318,13 +318,15 @@ class UserBillController
 //                                'text' => '',
                                 'left' => 250,
                                 'top' => 680,
-                                'fontPath' => $rootPath . 'public' . DS . $filelink['Normal'],     //字体文件
+                                'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],     //字体文件
                                 'fontSize' => 40,             //字号
                                 'fontColor' => '40,40,40',       //字体颜色
                                 'angle' => 0,
                             )
                         ),
-                        'background' => $item['pic']
+                        'background' => $item['pic'],
+                        'width' => 1000,             // 调整背景图宽度
+                        'height' => 1500,            // 调整背景图高度
                     );
                     $resWap = $resWap && $posterInfo = UtilService::setSharePoster($config, 'wap/spread/poster');
                     if (!is_array($posterInfo)) return app('json')->fail($posterInfo);