|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.success) {
|
|
|
|
|
var appId = res.data.application_id;
|
|
|
|
|
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 {
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.success) {
|
|
|
|
|
var appId = res.data;
|
|
|
|
|
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 {
|
|
|
|
|