dever 7 years ago
parent
commit
2b267aa7ec
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Applet.php

+ 6 - 0
src/Applet.php

@@ -166,6 +166,12 @@ class Applet extends Base
                 $update['set_mobile'] = $mobile;
                 $update['where_id'] = $uid;
                 Dever::load('passport/user-update', $update);
+
+                $state = Dever::config('base', 'project')->regSendSms;
+                if ($state) {
+                    Dever::setInput('skin', $state);
+                    $this->send($mobile, $uid);
+                }
             } else {
                 Dever::alert('无效的用户id,请重新登录');
             }