dever 4 năm trước cách đây
mục cha
commit
3f06cfed81
2 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 2 1
      database/avatar.php
  2. 6 0
      src/App.php

+ 2 - 1
database/avatar.php

@@ -2,6 +2,7 @@
 
 $sex = array
 (
+    -1 => '系统',
     1 => '男',
     2 => '女',
     3 => '中性',
@@ -40,7 +41,7 @@ return array
             'match'     => 'is_numeric',
             'option'    => $sex,
             'update'    => 'radio',
-            //'list'        => true,
+            'list'        => true,
         ),
         
         //search_exist_avatar=yes

+ 6 - 0
src/App.php

@@ -163,6 +163,12 @@ class App extends Base
             $uid = $this->reg($source_type, $system_source, $data);
 
             Dever::score($uid, 'mobile_reg', '手机号注册', false, false, false, $type, $type_id);
+
+            if (Dever::project('message')) {
+                $name = Dever::config('base', 'project')->name;
+                $content = '亲爱的' . $data['username'] . ',欢迎来到' . $name;
+                Dever::load('message/lib/data')->push(-1, $uid, '欢迎语', $content, $type = 1);
+            }
         } else {
             $uid = $this->combine($info['id'], $mobile, 'mobile');
         }