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

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

@@ -217,7 +217,8 @@ class UserBillController
                         ),
                         'text' => array(
                             array(
-                                'text' => $user['nickname'],
+//                                'text' => $user['nickname'],
+                                'text' => '',
                                 'left' => 250,
                                 'top' => 840,
                                 'fontPath' => $rootPath . 'public' . DS . $filelink['Bold'],     //字体文件
@@ -226,7 +227,8 @@ class UserBillController
                                 'angle' => 0,
                             ),
                             array(
-                                'text' => '邀请您加入' . sys_config('site_name'),
+//                                'text' => '邀请您加入' . sys_config('site_name'),
+                                'text' => '',
                                 'left' => 250,
                                 'top' => 880,
                                 'fontPath' => $rootPath . 'public' . DS . $filelink['Normal'],     //字体文件
@@ -337,6 +339,7 @@ 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()]);
         }
     }