Modify enterprise wechat work message notice
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<td><?php echo html::input('name', $webhook->name, "class='form-control'");?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr id='urlTR' class='<?php echo in_array($webhook->type, array('dingapi', 'weixin')) ? 'hidden' : '';?>'>
|
||||
<tr id='urlTR' class='<?php echo in_array($webhook->type, array('dingapi', 'wechatApi')) ? 'hidden' : '';?>'>
|
||||
<th><?php echo $lang->webhook->url;?></th>
|
||||
<td><?php echo html::input('url', $webhook->url, "class='form-control'");?></td>
|
||||
<td><?php echo zget($lang->webhook->note->typeList, $webhook->type, '');?></td>
|
||||
@@ -55,21 +55,21 @@
|
||||
<td class='required'><?php echo html::input('appSecret', $secret->appSecret, "class='form-control'");?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php if($webhook->type == 'weixin'):?>
|
||||
<?php if($webhook->type == 'wechatApi'):?>
|
||||
<?php $secret = json_decode($webhook->secret);?>
|
||||
<tr class="wechatTR">
|
||||
<th><?php echo $lang->webhook->wechatCorpId;?></th>
|
||||
<td class='required'><?php echo html::input('wechatCorpId', $secret->agentId, "class='form-control'")?></td>
|
||||
<td class='required'><?php echo html::input('wechatCorpId', $secret->appKey, "class='form-control'")?></td>
|
||||
<td><?php echo $lang->webhook->note->wechatCorpid;?></td>
|
||||
</tr>
|
||||
<tr class="wechatTR">
|
||||
<th><?php echo $lang->webhook->wechatCorpSecret;?></th>
|
||||
<td class='required'><?php echo html::input('wechatSecret', $secret->appKey, "class='form-control'")?></td>
|
||||
<td><?php echo $lang->webhook->note->wechatSecret;?></td>
|
||||
<td class='required'><?php echo html::input('wechatCorpSecret', $secret->appSecret, "class='form-control'")?></td>
|
||||
<td><?php echo $lang->webhook->note->wechatCorpSecret;?></td>
|
||||
</tr>
|
||||
<tr class="wechatTR">
|
||||
<th><?php echo $lang->webhook->wechatAgentId;?></th>
|
||||
<td class='required'><?php echo html::input('wechatAppId', $secret->appSecret, "class='form-control'")?></td>
|
||||
<td class='required'><?php echo html::input('wechatAgentId', $secret->agentId, "class='form-control'")?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
@@ -95,7 +95,7 @@
|
||||
<td><?php echo html::select('projects[]', $projects, $webhook->projects, "class='form-control chosen' multiple");?></td>
|
||||
<td><?php echo $lang->webhook->note->project;?></td>
|
||||
</tr>
|
||||
<?php if(strpos(',bearychat,dingding,dingapi,weixin,wxRobot,', ",$webhook->type,") === false):?>
|
||||
<?php if(strpos(',bearychat,dingding,dingapi,weixin,wechatApi,', ",$webhook->type,") === false):?>
|
||||
<tr id='paramsTR'>
|
||||
<th>
|
||||
<div class='checkbox-primary'>
|
||||
|
||||
Reference in New Issue
Block a user