dever 3 роки тому
батько
коміт
e25def1827
1 змінених файлів з 8 додано та 2 видалено
  1. 8 2
      service/option/lib/Email.php

+ 8 - 2
service/option/lib/Email.php

@@ -14,6 +14,12 @@ class Email
         if (!$signature) {
             Dever::alert('您的验证信息已失效,请重新发送验证邮件');
         }
+        $url = Dever::url();
+        if (strstr($url, 'uat')) {
+            $host = 'http://qiquan.uat.churenyiliao.com/';
+        } else {
+            $host = 'http://qiquan.churenyiliao.com/';
+        }
 
         $signature = Dever::decode($signature);
         $temp = explode('|||', $signature);
@@ -27,7 +33,7 @@ class Email
         $check = Dever::db('option/account')->find(array('email' => $temp[1]));
 
         if (!$check) {
-            Dever::location('http://qiquan.churenyiliao.com/pages/app/checkemail/checkemail/?email='.$temp[1].'&status=2');
+            Dever::location($host . 'pages/app/checkemail/checkemail/?email='.$temp[1].'&status=2');
             Dever::alert('您的验证信息已失效,请重新发送验证邮件');
         }
 
@@ -37,7 +43,7 @@ class Email
 
         Dever::db('option/account')->update($where);
 
-        Dever::location('http://qiquan.churenyiliao.com/pages/app/checkemail/checkemail/?email='.$temp[1].'&status=1');
+        Dever::location($host . 'pages/app/checkemail/checkemail/?email='.$temp[1].'&status=1');
         echo '您的邮件:'.$temp[1].',已经验证成功。请登录期权管理系统查询。';die;
     }