修改配置

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("修改子账号失败");
}

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

Loading…
Cancel
Save