dever il y a 3 ans
Parent
commit
03cba999ce
3 fichiers modifiés avec 13 ajouts et 5 suppressions
  1. 4 4
      config/base.php
  2. 1 1
      service/option/lib/Core.php
  3. 8 0
      service/option/src/My.php

+ 4 - 4
config/base.php

@@ -48,11 +48,11 @@ $config['base'] = array
     'email' => array
     (
         'pop' => 'pop.qq.com',
-        'smtp' => 'smtp.qq.com',
+        'smtp' => 'smtp.qiye.aliyun.com',
         'imap' => 'imap.qq.com',
-        'username' => '2934170@qq.com',
-        'password' => 'ybilyxddfe521',
-        'from' => array('2934170@qq.com', '厨人易料'),
+        'username' => 'zsmazq@zsma.com.cn',
+        'password' => 'Zsma123886',
+        'from' => array('zsmazq@zsma.com.cn', '厨人易料'),
         'agent' => array
         (
             'title' => '厨人易料代理商邮箱认证',

+ 1 - 1
service/option/lib/Core.php

@@ -14,7 +14,7 @@ class Core
     {
         $this->uid = Dever::load('passport/user')->check(false);
         if ($this->uid <= 0) {
-            $this->uid = 2;
+            $this->uid = 1;
         }
         $this->checkLogin();
         if ($this->uid) {

+ 8 - 0
service/option/src/My.php

@@ -7,6 +7,14 @@ use Option\Lib\Core;
 
 class My extends Core
 {
+    public function test()
+    {
+        $where['email'] = '2934170@qq.com';
+        $code = Dever::load('passport/reg')->code(false, false);
+            $email = base64_encode($where['email']);
+            Dever::daemon('lib/email.renzheng?aid='.$this->uid.'&email=' . $email . '&code=' . $code . '&username=' . $this->user['name'], 'option');
+    }
+
     /**
      * 获取基本信息
      *