dever %!s(int64=3) %!d(string=hai) anos
pai
achega
bb21715093
Modificáronse 2 ficheiros con 23 adicións e 0 borrados
  1. 19 0
      database/skin.php
  2. 4 0
      lib/Base.php

+ 19 - 0
database/skin.php

@@ -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',

+ 4 - 0
lib/Base.php

@@ -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'];