dever 3 年之前
父节点
当前提交
f210b23fe3
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      database/subscribe.php
  2. 1 1
      database/subscribe_send.php
  3. 1 1
      src/Subscribe.php

+ 1 - 1
database/subscribe.php

@@ -63,7 +63,7 @@ return array
 			'default' 	=> '1',
 			'default' 	=> '1',
 			'desc' 		=> '订阅类型',
 			'desc' 		=> '订阅类型',
 			'match' 	=> 'is_numeric',
 			'match' 	=> 'is_numeric',
-			'update'	=> 'select',
+			'update'	=> 'radio',
 			'option'	=> $type,
 			'option'	=> $type,
 			'list'		=> true,
 			'list'		=> true,
 		),
 		),

+ 1 - 1
database/subscribe_send.php

@@ -79,7 +79,7 @@ return array
 			'default' 	=> 'formal',
 			'default' 	=> 'formal',
 			'desc' 		=> '跳转小程序类型',
 			'desc' 		=> '跳转小程序类型',
 			'match' 	=> 'option',
 			'match' 	=> 'option',
-			'update'	=> 'select',
+			'update'	=> 'radio',
 			'search'	=> 'select',
 			'search'	=> 'select',
 			'option'	=> $type,
 			'option'	=> $type,
 			'list'		=> true,
 			'list'		=> true,

+ 1 - 1
src/Subscribe.php

@@ -66,7 +66,7 @@ class Subscribe
 	}
 	}
 
 
 	# 发送单条模板消息
 	# 发送单条模板消息
-	public function sendOne($key, $project_id, $touser, $path, $data, $miniprogram_state = '', $state = false)
+	public function sendOne($key, $project_id, $touser, $path, $data, $miniprogram_state = 'formal', $state = false)
 	{
 	{
 		if ($project_id > 0 && $key && $touser && $path && $data) {
 		if ($project_id > 0 && $key && $touser && $path && $data) {
 			$info = Dever::db('wechat_applet/subscribe')->one(array('option_key' => $key, 'option_project_id' => $project_id));
 			$info = Dever::db('wechat_applet/subscribe')->one(array('option_key' => $key, 'option_project_id' => $project_id));