|
@@ -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
|
|
|
*
|