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',
 			'desc' 		=> '订阅类型',
 			'match' 	=> 'is_numeric',
-			'update'	=> 'select',
+			'update'	=> 'radio',
 			'option'	=> $type,
 			'list'		=> true,
 		),

+ 1 - 1
database/subscribe_send.php

@@ -79,7 +79,7 @@ return array
 			'default' 	=> 'formal',
 			'desc' 		=> '跳转小程序类型',
 			'match' 	=> 'option',
-			'update'	=> 'select',
+			'update'	=> 'radio',
 			'search'	=> 'select',
 			'option'	=> $type,
 			'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) {
 			$info = Dever::db('wechat_applet/subscribe')->one(array('option_key' => $key, 'option_project_id' => $project_id));