-
Notifications
You must be signed in to change notification settings - Fork 0
/
InitScript.php
48 lines (43 loc) · 1.08 KB
/
InitScript.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace ank\sms;
class InitScript extends \app\utils\admin\InitScript
{
public function install(): bool
{
$this->addConfig([
'title' => '阿里AccessKeyId',
'name' => 'aliyun_access_key_id',
'group' => '短信',
'note' => '',
]);
$this->addConfig([
'title' => '阿里AccessKeySecret',
'name' => 'aliyun_access_key_secret',
'note' => '',
'group' => '短信',
]);
$this->addConfig([
'title' => '阿里云短信签名',
'name' => 'aliyun_sms_qianming',
'note' => '',
'group' => '短信',
]);
$this->addConfig([
'title' => '阿里云短信模板CODE',
'name' => 'aliyun_sms_tplcode',
'note' => '',
'group' => '短信',
]);
return true;
}
public function unInstall(): bool
{
# code...
return true;
}
public function update(): bool
{
# code...
return true;
}
}