Update 2 files

- /Gemfile
- /Live2dHistoire/live2d/js/message.js
This commit is contained in:
mayx 2023-12-30 13:58:00 +00:00
parent 7609bb0b8f
commit c622346eaa
2 changed files with 13 additions and 6 deletions

View File

@ -1,5 +1,5 @@
source "https://rubygems.org"
gem "jekyll", "~> 4.1.0"
gem "jekyll"
group :jekyll_plugins do
gem "jekyll-gist"
gem "jekyll-coffeescript"

View File

@ -289,17 +289,24 @@ if(!norunFlag){
type: 'POST',
url: "https://www.tuling123.com/openapi/api",
data: {
"key": "ae8933884bcc4bac96289a43d8a864db",
"info":info_,
"userid":userid_
"reqType":0,
"perception": {
"inputText": {
"text": info_
}
},
"userInfo": {
"apiKey": "ae8933884bcc4bac96289a43d8a864db",
"userId": userid_
}
},
success: function(res) {
if(res.code !== 100000){
if(res.intent.code !== 0){
talkValTimer();
showMessage('似乎有什么错误,请和站长联系!',0);
}else{
talkValTimer();
showMessage(res.text,0);
showMessage(res.results[0].values.text,0);
}
console.log(res);
$('#AIuserText').val("");