From 327bf6cd87dc8ce8e700b3da6a89e1ebab5ba01f Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 6 Nov 2019 19:56:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Base/Service/ApplyService.class.php | 6 ++++-- Application/Home/Controller/PromoteController.class.php | 2 +- Application/Home/Model/PromoteModel.class.php | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Application/Base/Service/ApplyService.class.php b/Application/Base/Service/ApplyService.class.php index 946248dbe..4b9aba2ed 100644 --- a/Application/Base/Service/ApplyService.class.php +++ b/Application/Base/Service/ApplyService.class.php @@ -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; } diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index 1e2203d29..e9c833910 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -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("修改子账号失败"); } diff --git a/Application/Home/Model/PromoteModel.class.php b/Application/Home/Model/PromoteModel.class.php index 702dc56a2..0bc8172f0 100644 --- a/Application/Home/Model/PromoteModel.class.php +++ b/Application/Home/Model/PromoteModel.class.php @@ -108,7 +108,7 @@ class PromoteModel extends Model{ } - public function get_child_promote($pid,$field=true) { + public function get_child_promote($pid, $field=true) { $map['parent_id'] = $pid; $map['grand_id'] = $pid; $map['_logic'] = 'or';