lizhen_gitee пре 1 година
родитељ
комит
1f94a54ed3
2 измењених фајлова са 12 додато и 11 уклоњено
  1. 7 7
      application/api/controller/Ems.php
  2. 5 4
      application/extra/site.php

+ 7 - 7
application/api/controller/Ems.php

@@ -29,8 +29,8 @@ class Ems extends Api
      */
     public function send()
     {
-        $email = $this->request->post("email");
-        $event = $this->request->post("event");
+        $email = input("email");
+        $event = input("event",'default');
         $event = $event ? $event : 'register';
 
         $last = Emslib::get($email, $event);
@@ -66,12 +66,12 @@ class Ems extends Api
      * @param string $event   事件名称
      * @param string $captcha 验证码
      */
-    public function check()
+    /*public function check()
     {
-        $email = $this->request->post("email");
-        $event = $this->request->post("event");
+        $email = input("email");
+        $event = input("event");
         $event = $event ? $event : 'register';
-        $captcha = $this->request->post("captcha");
+        $captcha = input("captcha");
 
         if ($event) {
             $userinfo = User::getByEmail($email);
@@ -92,5 +92,5 @@ class Ems extends Api
         } else {
             $this->error(__('验证码不正确'));
         }
-    }
+    }*/
 }

+ 5 - 4
application/extra/site.php

@@ -28,14 +28,15 @@ return array (
     'service' => '金钱配置',
     'androidversion' => '安卓版本更新',
     'iosversion' => 'ios版本更新',
+    'email' => '邮箱配置',
   ),
   'mail_type' => '1',
-  'mail_smtp_host' => 'smtp.qq.com',
+  'mail_smtp_host' => 'smtp.126.com',
   'mail_smtp_port' => '465',
-  'mail_smtp_user' => '10000',
-  'mail_smtp_pass' => 'password',
+  'mail_smtp_user' => 'test123123456',
+  'mail_smtp_pass' => 'TJKFEMMSRGFCMROE',
   'mail_verify_type' => '2',
-  'mail_from' => '10000@qq.com',
+  'mail_from' => 'test123123456@126.com',
   'attachmentcategory' => 
   array (
     'category1' => '分类一',