|
|
@@ -325,21 +325,17 @@ class UserBillController
|
|
|
),
|
|
|
'background' => $item['pic']
|
|
|
);
|
|
|
- @file_put_contents('quanju.txt', "-4\r\n", 8);
|
|
|
$resWap = $resWap && $posterInfo = UtilService::setSharePoster($config, 'wap/spread/poster');
|
|
|
if (!is_array($posterInfo)) return app('json')->fail($posterInfo);
|
|
|
SystemAttachment::attachmentAdd($posterInfo['name'], $posterInfo['size'], $posterInfo['type'], $posterInfo['dir'], $posterInfo['thumb_path'], 1, $posterInfo['image_type'], $posterInfo['time'], 2);
|
|
|
- @file_put_contents('quanju.txt', "-5\r\n", 8);
|
|
|
if ($resWap) {
|
|
|
if ($posterInfo['image_type'] == 1)
|
|
|
$item['wap_poster'] = $siteUrl . $posterInfo['thumb_path'];
|
|
|
else
|
|
|
$item['wap_poster'] = UtilService::setHttpType($posterInfo['thumb_path'], 1);
|
|
|
}
|
|
|
- @file_put_contents('quanju.txt', "-6\r\n", 8);
|
|
|
}
|
|
|
}
|
|
|
- @file_put_contents('quanju.txt', json_encode($routineSpreadBanner)."-7\r\n", 8);
|
|
|
if ($resRoutine && $resWap) return app('json')->successful($routineSpreadBanner);
|
|
|
else return app('json')->fail('生成图片失败');
|
|
|
} catch (\Exception $e) {
|