Browse Source

发邮件

lizhen_gitee 3 months ago
parent
commit
2b28f395a1

+ 3 - 3
application/api/controller/Baseconfig.php

@@ -38,15 +38,15 @@ class Baseconfig extends Api
         $this->success('success',$config);
     }
 
-    //启动广告图
-    public function start_advert(){
+    //启动广告图,没用到,前端固定死的
+    /*public function start_advert(){
 
 
         $info = Db::name('start_advert')->where('is_show',1)->order('id desc')->find();
 
         $info = info_domain_image($info,['image']);
         $this->success_find('success',$info);
-    }
+    }*/
 
 
 

+ 4 - 0
application/common/library/Auth.php

@@ -691,8 +691,12 @@ class Auth
      * 获取会员基本信息
      */
     public function getUserinfo_simple(){
+        $data = $this->_user->toArray();
+
         $user_info = Token::get($this->_token);
         $user_info['id'] = $user_info['user_id'];
+
+        $user_info['gender'] = $data['gender'];
         return $user_info;
     }
 

+ 4 - 4
application/extra/site.php

@@ -30,12 +30,12 @@ return array (
     'withdraw' => '提现配置',
   ),
   'mail_type' => '1',
-  'mail_smtp_host' => 'smtp.qq.com',
+  'mail_smtp_host' => 'smtp.163.com',
   'mail_smtp_port' => '465',
-  'mail_smtp_user' => '10000',
-  'mail_smtp_pass' => 'password',
+  'mail_smtp_user' => '星链交友',
+  'mail_smtp_pass' => 'WEhZsAz6qTcUy3eF',
   'mail_verify_type' => '2',
-  'mail_from' => '10000@qq.com',
+  'mail_from' => 'lizhenati@163.com',
   'attachmentcategory' => 
   array (
     'category1' => '分类一',