dever 3 years ago
parent
commit
ddd8f4ea78
3 changed files with 14 additions and 12 deletions
  1. 9 9
      database/subscribe.php
  2. 3 3
      database/subscribe_send.php
  3. 2 0
      src/Msg.php

+ 9 - 9
database/subscribe.php

@@ -48,9 +48,9 @@ return array
 		'name'		=> array
 		(
 			'type' 		=> 'varchar-120',
-			'name' 		=> '模板标题',
+			'name' 		=> '标题',
 			'default' 	=> '',
-			'desc' 		=> '模板标题',
+			'desc' 		=> '标题',
 			'match' 	=> 'is_string',
 			'update'	=> 'text',
 			'list'		=> true,
@@ -71,9 +71,9 @@ return array
 		'key'		=> array
 		(
 			'type' 		=> 'varchar-20',
-			'name' 		=> '模板消息key-通过key值搜索数据',
+			'name' 		=> '消息key-通过key值搜索数据',
 			'default' 	=> '',
-			'desc' 		=> '模板消息key-通过key值搜索数据',
+			'desc' 		=> '消息key-通过key值搜索数据',
 			'match' 	=> 'is_string',
 			'update'	=> 'text',
 			'list'		=> true,
@@ -94,9 +94,9 @@ return array
 		'content'		=> array
 		(
 			'type' 		=> 'varchar-600',
-			'name' 		=> '模板内容',
+			'name' 		=> '内容',
 			'default' 	=> '',
-			'desc' 		=> '模板内容',
+			'desc' 		=> '内容',
 			'match' 	=> 'option',
 			//'update'	=> 'textarea',
 			'list'		=> true,
@@ -105,9 +105,9 @@ return array
 		'example'		=> array
 		(
 			'type' 		=> 'varchar-600',
-			'name' 		=> '模板样例',
+			'name' 		=> '样例',
 			'default' 	=> '',
-			'desc' 		=> '模板样例',
+			'desc' 		=> '样例',
 			'match' 	=> 'option',
 			//'update'	=> 'textarea',
 			'list'		=> true,
@@ -144,7 +144,7 @@ return array
 
 		'button' => array
 		(
-			'同步模板' => 'wechat_applet/subscribe.sync',
+			'同步订阅模板' => 'wechat_applet/subscribe.sync',
 		),
 	),
 );

+ 3 - 3
database/subscribe_send.php

@@ -52,9 +52,9 @@ return array
 		'key'		=> array
 		(
 			'type' 		=> 'varchar-20',
-			'name' 		=> '模板消息key',
+			'name' 		=> '消息key',
 			'default' 	=> '',
-			'desc' 		=> '模板消息key',
+			'desc' 		=> '消息key',
 			'match' 	=> 'is_string',
 			'update'	=> 'text',
 			'list'		=> true,
@@ -88,7 +88,7 @@ return array
 		'content'		=> array
 		(
 			'type' 		=> 'text-255',
-			'name' 		=> '模板内容',
+			'name' 		=> '消息内容',
 			'default' 	=> '',
 			'desc' 		=> '请输入内容',
 			'match' 	=> 'is_string',

+ 2 - 0
src/Msg.php

@@ -299,6 +299,7 @@ class Msg
 	public function load($project_id, $data, $param = false)
 	{
 		if (isset($data['list']) && $data['list']) {
+			//Dever::db('wechat_applet/msg')->updates(array('option_project_id' => $project_id, 'set_state' => 2));
 			foreach ($data['list'] as $k => $v) {
 				$update = array();
 				$update['project_id'] = $project_id;
@@ -306,6 +307,7 @@ class Msg
 				$update['content'] = $v['content'];
 				$update['name'] = $v['title'];
 				$update['example'] = $v['example'];
+				//$update['state'] = 1;
 				$id = Dever::upinto('wechat_applet/msg', array('option_project_id' => $project_id, 'option_template_id' => $v['template_id']), $update);
 			}
 		}