|
|
|
@ -76,14 +76,16 @@ class ApplyService {
|
|
|
|
|
|
|
|
|
|
public function getDownloadUrl($apply)
|
|
|
|
|
{
|
|
|
|
|
$host = Request::getHost();
|
|
|
|
|
$host = C('DOMAIN_DOWNLOAD');
|
|
|
|
|
$host = $host ? $host : Request::getHost();
|
|
|
|
|
$code = $this->encodeApplyCode($apply, self::ENCRYPT_TYPE_DOWNLOAD);
|
|
|
|
|
return $host . '/index.php?s=/Home/Download/index/code/' . $code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getLandingPageUrl($apply)
|
|
|
|
|
{
|
|
|
|
|
$host = Request::getHost();
|
|
|
|
|
$host = C('DOMAIN_DOWNLOAD');
|
|
|
|
|
$host = $host ? $host : Request::getHost();
|
|
|
|
|
$code = $this->encodeApplyCode($apply, self::ENCRYPT_TYPE_LANDING_PAGE);
|
|
|
|
|
return $host . '/index.php?s=/Home/Home/landingPage/code/' . $code;
|
|
|
|
|
}
|
|
|
|
|