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';