Browse Source

短信配置

lizhen_gitee 7 months ago
parent
commit
67bf4a8446
1 changed files with 135 additions and 145 deletions
  1. 135 145
      addons/qcloudsms/config.php

+ 135 - 145
addons/qcloudsms/config.php

@@ -1,147 +1,137 @@
 <?php
 
-return array(
-    array(
-        'name'    => 'appid',
-        'title'   => '应用AppID',
-        'type'    => 'string',
-        'content' =>
-            array(),
-        'value'   => '',
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'appkey',
-        'title'   => '应用AppKEY',
-        'type'    => 'string',
-        'content' =>
-            array(),
-        'value'   => '',
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'voiceAppid',
-        'title'   => '语音短信AppID',
-        'type'    => 'string',
-        'content' =>
-            array(),
-        'value'   => '',
-        'rule'    => 'required',
-        'msg'     => '使用语音短信必须设置',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'voiceAppkey',
-        'title'   => '语音短信AppKEY',
-        'type'    => 'string',
-        'content' =>
-            array(),
-        'value'   => '',
-        'rule'    => 'required',
-        'msg'     => '使用语音短信必须设置',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'sign',
-        'title'   => '签名',
-        'type'    => 'string',
-        'content' =>
-            array(),
-        'value'   => 'your sign',
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'isVoice',
-        'title'   => '是否使用语音短信',
-        'type'    => 'radio',
-        'content' =>
-            array(
-                0 => '否',
-                1 => '是',
-            ),
-        'value'   => '0',
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'isTemplateSender',
-        'title'   => '是否使用短信模板发送',
-        'type'    => 'radio',
-        'content' =>
-            array(
-                0 => '否',
-                1 => '是',
-            ),
-        'value'   => '1',
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'template',
-        'title'   => '短信模板',
-        'type'    => 'array',
-        'content' =>
-            array(),
-        'value'   =>
-            array(
-            'register'           => '',
-            'resetpwd'           => '',
-            'changepwd'          => '',
-            'changemobile'       => '',
-            'profile'            => '',
-            'notice'             => '',
-            'mobilelogin'        => '',
-            'bind'               => '',
-            ),
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-    array(
-        'name'    => 'voiceTemplate',
-        'title'   => '语音短信模板',
-        'type'    => 'array',
-        'content' =>
-            array(),
-        'value'   =>
-            array(
-            'register'           => '',
-            'resetpwd'           => '',
-            'changepwd'          => '',
-            'changemobile'       => '',
-            'profile'            => '',
-            'notice'             => '',
-            'mobilelogin'        => '',
-            'bind'               => '',
-            ),
-        'rule'    => 'required',
-        'msg'     => '',
-        'tip'     => '',
-        'ok'      => '',
-        'extend'  => '',
-    ),
-);
+return [
+    [
+        'name' => 'appid',
+        'title' => '应用AppID',
+        'type' => 'string',
+        'content' => [],
+        'value' => '1400928732',
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'appkey',
+        'title' => '应用AppKEY',
+        'type' => 'string',
+        'content' => [],
+        'value' => '582130d5fa31622d5b22e891730fb568',
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'voiceAppid',
+        'title' => '语音短信AppID',
+        'type' => 'string',
+        'content' => [],
+        'value' => '1',
+        'rule' => 'required',
+        'msg' => '使用语音短信必须设置',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'voiceAppkey',
+        'title' => '语音短信AppKEY',
+        'type' => 'string',
+        'content' => [],
+        'value' => '1',
+        'rule' => 'required',
+        'msg' => '使用语音短信必须设置',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'sign',
+        'title' => '签名',
+        'type' => 'string',
+        'content' => [],
+        'value' => '达富康App',
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'isVoice',
+        'title' => '是否使用语音短信',
+        'type' => 'radio',
+        'content' => [
+            '否',
+            '是',
+        ],
+        'value' => '0',
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'isTemplateSender',
+        'title' => '是否使用短信模板发送',
+        'type' => 'radio',
+        'content' => [
+            '否',
+            '是',
+        ],
+        'value' => '1',
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'template',
+        'title' => '短信模板',
+        'type' => 'array',
+        'content' => [],
+        'value' => [
+            'register' => '2233141',
+            'resetpwd' => '2233141',
+            'changepwd' => '2233141',
+            'changemobile' => '2233141',
+            'profile' => '2233141',
+            'notice' => '2233141',
+            'mobilelogin' => '2233141',
+            'bind' => '2233141',
+            'default' => '2233141',
+        ],
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+    [
+        'name' => 'voiceTemplate',
+        'title' => '语音短信模板',
+        'type' => 'array',
+        'content' => [],
+        'value' => [
+            'register' => '',
+            'resetpwd' => '',
+            'changepwd' => '',
+            'changemobile' => '',
+            'profile' => '',
+            'notice' => '',
+            'mobilelogin' => '',
+            'bind' => '',
+        ],
+        'rule' => 'required',
+        'msg' => '',
+        'tip' => '',
+        'ok' => '',
+        'extend' => '',
+    ],
+];