dever 3 years ago
parent
commit
90de4ff6fe
2 changed files with 14 additions and 2 deletions
  1. 11 0
      service/option/database/account.php
  2. 3 2
      service/option/lib/Manage.php

+ 11 - 0
service/option/database/account.php

@@ -288,6 +288,17 @@ return array
             'list_order' => 100,
         ),
 
+        'stype'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '类型-仅用于展示类型',
+            'default'   => '-1',
+            'desc'      => '类型',
+            'match'     => 'is_string',
+            'update'    => 'text',
+            'search'    => 'hidden',
+        ),
+
         'state'     => array
         (
             'type'      => 'tinyint-1',

+ 3 - 2
service/option/lib/Manage.php

@@ -65,13 +65,14 @@ class Manage
                 }
             }
 
+            $member = Dever::db('option/member')->one($info['mid']);
             if ($audit == 3) {
                 if (Dever::project('sms')) {
-                    Dever::load('sms/api')->send('qiquan_reg_yes', $info['mobile'], array('name' => $info['name']));
+                    Dever::load('sms/api')->send('qiquan_reg_yes', $member['mobile'], array('name' => $info['name']));
                 }
             } elseif ($audit == 4) {
                 if (Dever::project('sms')) {
-                    Dever::load('sms/api')->send('qiquan_reg_no', $info['mobile'], array('name' => $info['name'], 'content' => $desc));
+                    Dever::load('sms/api')->send('qiquan_reg_no', $member['mobile'], array('name' => $info['name'], 'content' => $desc));
                 }
             }
         }