|
|
@@ -258,7 +258,7 @@ class UserBillController
|
|
|
SystemAttachment::where(['name' => $name])->delete();
|
|
|
}
|
|
|
if (!$imageInfo) {
|
|
|
- $codeUrl = set_http_type($siteUrl . '?spread=' . $user['uid'], $request->isSsl() ? 0 : 1);//二维码链接
|
|
|
+ $codeUrl = set_http_type($siteUrl.'/index/#/?spread='.$user['uid'], $request->isSsl() ? 0 : 1);//二维码链接
|
|
|
$imageInfo = UtilService::getQRCodePath($codeUrl, $name);
|
|
|
if (is_string($imageInfo)) return app('json')->fail('二维码生成失败', ['error' => $imageInfo]);
|
|
|
SystemAttachment::attachmentAdd($imageInfo['name'], $imageInfo['size'], $imageInfo['type'], $imageInfo['dir'], $imageInfo['thumb_path'], 1, $imageInfo['image_type'], $imageInfo['time'], 2);
|
|
|
@@ -321,6 +321,7 @@ class UserBillController
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ $routineSpreadBanner['uid'] = $request->uid();
|
|
|
if ($resRoutine && $resWap) return app('json')->successful($routineSpreadBanner);
|
|
|
else return app('json')->fail('生成图片失败');
|
|
|
} catch (\Exception $e) {
|