main
kgdxpr 7 months ago
parent 5a9d14f361
commit 7733ab84e1

@ -30,14 +30,13 @@
dataType: "json",
async: false,
url: "/QingLong/maxkb/getApplication",
success: function (res) {
console.log(res);
success: function (res) {
if (res.success) {
var appId = res.access_token;
var iframe = '<iframe src="http://10.10.14.206:8080/ui/chat/' + appId + '" style="width: 100%; height: 99.5%;" frameborder="0" allow="microphone"></iframe>';
$('body').append(iframe);
} else {
var loadIndex = layer.msg('AI助手初始化中...', {
layer.msg('AI助手初始化中...', {
icon: 16,
shade: 0.01
});
@ -45,9 +44,8 @@
$.ajax({
url: '/QingLong/maxkb/createApplication',
type: 'post',
async: false,
success: function (res) {
console.log(res);
async: true,
success: function (res) {
if (res.success) {
var appId = res.access_token;
var iframe = '<iframe src="http://10.10.14.206:8080/ui/chat/' + appId + '" style="width: 100%; height: 99.5%;" frameborder="0" allow="microphone"></iframe>';

Loading…
Cancel
Save