WIN-2308041133\Administrator 4 months ago
parent
commit
4c4345076c
1 changed files with 6 additions and 9 deletions
  1. 6 9
      app/api/controller/user/UserBillController.php

+ 6 - 9
app/api/controller/user/UserBillController.php

@@ -257,7 +257,6 @@ class UserBillController
                     $imageInfo = null;
                     SystemAttachment::where(['name' => $name])->delete();
                 }
-                @file_put_contents('quanju.txt', json_encode($imageInfo) . "-什么东西\r\n", 8);
                 if (!$imageInfo) {
                     try {
                         $qr_code = QrcodeService::getForeverQrcode('spread', $user['uid']);
@@ -270,9 +269,7 @@ class UserBillController
                             SystemAttachment::attachmentAdd($imageInfo['name'], $imageInfo['size'], $imageInfo['type'], $imageInfo['dir'], $imageInfo['thumb_path'], 1, $imageInfo['image_type'], $imageInfo['time'], 2);
                             $urlCode = $imageInfo['dir'];
                         }
-                        @file_put_contents('quanju.txt',  "-1\r\n", 8);
                     } catch (\Exception $e) {
-                        @file_put_contents('quanju.txt',  "-2\r\n", 8);
                         $codeUrl = set_http_type($siteUrl . '?spread=' . $user['uid'], 1);//二维码链接
                         $imageInfo = UtilService::getQRCodePath($codeUrl, $name);
                         if (is_string($imageInfo)) return app('json')->fail('二维码生成失败', ['error' => $imageInfo]);
@@ -286,7 +283,6 @@ class UserBillController
                     'Bold' => 'static' . DS . 'font' . DS . 'Alibaba-PuHuiTi-Regular.otf',
                     'Normal' => 'static' . DS . 'font' . DS . 'Alibaba-PuHuiTi-Regular.otf',
                 ];
-                @file_put_contents('quanju.txt',  "-3\r\n", 8);
                 if (!file_exists($filelink['Bold'])) return app('json')->fail('缺少字体文件Bold');
                 if (!file_exists($filelink['Normal'])) return app('json')->fail('缺少字体文件Normal');
                 foreach ($routineSpreadBanner as $key => &$item) {
@@ -296,12 +292,12 @@ class UserBillController
                             array(
                                 'url' => $urlCode,     //二维码资源
                                 'stream' => 0,
-                                'left' => 114,
-                                'top' => 790,
+                                'left' => 154,
+                                'top' => 390,
                                 'right' => 0,
                                 'bottom' => 0,
-                                'width' => 120,
-                                'height' => 120,
+                                'width' => 720,
+                                'height' => 720,
                                 'opacity' => 100
                             )
                         ),
@@ -316,7 +312,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'],     //字体文件