企业系统增加机器人管理,增加获取微信AI回复客户的配置的API
This commit is contained in:
@@ -152,6 +152,32 @@
|
||||
<div class="api_wxgroup_getEmergencyContactPerson_response_result"></div>
|
||||
|
||||
</div>
|
||||
<div id="api_wxAiConfig_getRepayContent" style="background-color: #F3FFAEFF;margin-top: 50px;">
|
||||
<div class="markdown_content">
|
||||
***
|
||||
```
|
||||
/**
|
||||
* desc: 获取微信AI回复客户的配置
|
||||
* * 【请求地址】:
|
||||
* api/WxAiConfig/getRepayContent
|
||||
*
|
||||
* * 【请求参数】:(如果有“必须”标识则表示该字段是必填项)
|
||||
* wxid AI微信ID【必须】
|
||||
*
|
||||
* * 【返回参数】
|
||||
* delay_secs 回复时间秒
|
||||
* status yes=在线 no=离线
|
||||
*/
|
||||
```
|
||||
</div>
|
||||
<div>
|
||||
按需填写其它接口参数:
|
||||
<textarea name="" id="api_wxAiConfig_getRepayContent_textarea" cols="100" rows="3">/api/feedback/setUserFeedback</textarea>
|
||||
<a href='JavaScript:;' onclick="DocObject.api_wxAiConfig_getRepayContent()">测试</a>
|
||||
</div>
|
||||
<div class="api_wxAiConfig_getRepayContent_response_result"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
@@ -159,7 +185,6 @@
|
||||
<script src="/webautocodestatic/plugs/layui-v2.9.2/layui.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
//加载markdown
|
||||
DocObject.markdown_content();
|
||||
});
|
||||
@@ -198,6 +223,13 @@
|
||||
$('.api_wxgroup_getEmergencyContactPerson_response_result').attr('style','color:green');
|
||||
},'json');
|
||||
},
|
||||
api_wxAiConfig_getRepayContent(){
|
||||
let url = $('#api_wxAiConfig_getRepayContent_textarea').val();
|
||||
$.post(url,{},function(res) {
|
||||
$('.api_wxAiConfig_getRepayContent_response_result').html(JSON.stringify(res, null, "\t"));
|
||||
$('.api_wxAiConfig_getRepayContent_response_result').attr('style','color:green');
|
||||
},'json');
|
||||
},
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user