lizhen_gitee 3 år sedan
förälder
incheckning
6ee760691e
2 ändrade filer med 5 tillägg och 5 borttagningar
  1. 3 3
      addons/qcloudsms/config.php
  2. 2 2
      application/api/controller/Sms.php

+ 3 - 3
addons/qcloudsms/config.php

@@ -54,7 +54,7 @@ return [
         'title' => '签名',
         'type' => 'string',
         'content' => [],
-        'value' => '415586',
+        'value' => '北京畅来科技有限公司',
         'rule' => 'required',
         'msg' => '',
         'tip' => '',
@@ -84,7 +84,7 @@ return [
             '否',
             '是',
         ],
-        'value' => '0',
+        'value' => '1',
         'rule' => 'required',
         'msg' => '',
         'tip' => '',
@@ -98,7 +98,7 @@ return [
         'content' => [],
         'value' => [
             'resetpwd' => '1240947',
-            'login' => '1240882',
+            'default' => '1240882',
         ],
         'rule' => 'required',
         'msg' => '',

+ 2 - 2
application/api/controller/Sms.php

@@ -24,8 +24,8 @@ class Sms extends Api
      */
     public function send()
     {
-        $mobile = $this->request->post("mobile");
-        $event = $this->request->post("event",'default');
+        $mobile = input("mobile");
+        $event = input("event",'default');
         $event = $event ? $event : 'register';
 
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {