|
|
@@ -295,6 +295,9 @@ class UtilService
|
|
|
*/
|
|
|
public static function setSharePoster($config = array(), $path)
|
|
|
{
|
|
|
+ try {
|
|
|
+
|
|
|
+
|
|
|
$imageDefault = array(
|
|
|
'left' => 0,
|
|
|
'top' => 0,
|
|
|
@@ -423,6 +426,10 @@ class UtilService
|
|
|
$info['image_type'] = $uploadType;
|
|
|
return $info;
|
|
|
}
|
|
|
+ }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('生成图片时,系统错误2', ['line' => $e->getLine(), 'message' => $e->getMessage(), 'file' => $e->getFile()]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|