| 
					
				 | 
			
			
				@@ -20,8 +20,8 @@ $config = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'data_button' => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             '设置' => ['fastedit', 'name,method,api_account_id,msg/account_email'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            '短信模板' => ['fastedit', 'msg/account_sms,tip', '', 'method=sms'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            '微信模板' => ['fastedit', 'msg/account_wechat,tip', '', 'method=wechat_service,wechat_applet'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            '短信模板' => ['fastedit', 'msg/account_sms,tip', '', 'method=Sms'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            '微信模板' => ['fastedit', 'msg/account_wechat,tip', '', 'method=WechatService,WechatApplet'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'search' => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'name', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -44,10 +44,10 @@ $config = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'control' => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'msg/account_email' => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'method' => ['email'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'method' => ['Email'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'api_account_id' => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                'method' => ['sms', 'wechat_service', 'wechat_applet', 'app'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                'method' => ['Sms', 'WechatService', 'WechatApplet', 'App'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,8 +56,8 @@ $config = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 $id = Dever::input('id'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if ($id > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $default = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $info = Dever::db('account', 'msg')->find($id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $template = Dever::db('template', 'msg')->select(['method' => ['like', $info['method']]]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $info = Dever::db('msg/account')->find($id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $template = Dever::db('msg/template')->select(['method' => ['like', $info['method']]]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if ($template) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         foreach ($template as $v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $default[] = [ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,13 +65,13 @@ if ($id > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'template_name' => $v['name'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($info['method'] == 'sms') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($info['method'] == 'Sms') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $config['update']['field']['msg/account_sms'] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'name' => '短信模板', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'where'  => ['account_id' => 'id'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'default' => $default, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } elseif (strstr($info['method'], 'wechat')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } elseif (strstr($info['method'], 'Wechat')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $config['update']['field']['msg/account_wechat'] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'name' => '微信模板', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'where'  => ['account_id' => 'id'], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,13 +79,13 @@ if ($id > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if ($info['method'] == 'sms') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($info['method'] == 'Sms') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $config['update']['field']['tip'] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'name' => '短信模板', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'type' => 'show', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'default' => '暂无短信模板,请在消息模板中选择', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } elseif (strstr($info['method'], 'wechat')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } elseif (strstr($info['method'], 'Wechat')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $config['update']['field']['tip'] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'name' => '微信模板', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 'type' => 'show', 
			 |