@@ -1,5 +1,11 @@
<?php
+$send = array
+(
+ 1 => '发送',
+ 2 => '不发送',
+);
+
return array
(
# 表名
@@ -70,6 +76,19 @@ return array
'list' => true,
),
+ 'send' => array
+ (
+ 'type' => 'tinyint-1',
+ 'name' => '是否发送短信',
+ 'default' => '1',
+ 'desc' => '是否发送短信',
+ 'match' => 'is_numeric',
+ 'update' => 'radio',
+ 'option' => $send,
+ 'list' => true,
+ 'edit' => true,
+ ),
'state' => array
'type' => 'tinyint-1',
@@ -45,6 +45,10 @@ class Base
$this->config($skin)->mobile($mobile);
+ if (isset($this->config['skin']['send']) && $this->config['skin']['send'] == 2) {
+ return false;
+ }
$content = $this->config['body'];
$skin = $this->config['skin']['content'];