dever 7 years ago
parent
commit
f76c899635
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/Applet.php

+ 11 - 0
src/Applet.php

@@ -81,6 +81,17 @@ class Applet extends Base
         return $result;
     }
 
+    public function test_sms()
+    {
+        $uid = Dever::input('uid');
+        $mobile = Dever::input('mobile');
+        $state = Dever::config('base', 'project')->regSendSms;
+        if ($state) {
+            Dever::setInput('skin', $state);
+            $this->send($mobile, $uid);
+        }
+    }
+
     /**
      * 生成用户,返回uid
      *