修改配置

master
ELF 5 years ago
parent edc6a7be73
commit 327bf6cd87

@ -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;
}

@ -1070,7 +1070,7 @@ class PromoteController extends BaseController
$res = $user->edit($_POST);
if ($res !== false) {
$this->success("子账号修改成功", U('Promote/mychlid'));
$this->success("子账号修改成功", U('Promote/children'));
} else {
$this->error("修改子账号失败");
}

Loading…
Cancel
Save