语音聊天内测 - 鹅鹅导航AI语音助手
var live2d_settings = {"userInfo": {"sign": "eyJhbGciOiJSUzI1NiIsImtDZp-o69PA8y5WNRXoNt5bxuH1LFcyBWpofSo-_5LZhxKmrV_1sKmRBPZOHidNSAbo9FFllDCFDP0vaOI5GjKPXZHl-YFcLTBitVGUBErWKow"}, "modelAPI": "https://girl.model3.json", "modelPoint": {"x": 0, "y": 0, "zoom": 1}}};\nfunction loadModel(modelId, modelTexturesId){\n localStorage.setItem('modelId', modelId);\n if (modelTexturesId === undefined) modelTexturesId = 0;\n localStorage.setItem('modelTexturesId', modelTexturesId);\n loadlive2d('live2d', 'https://girl.model3.json', console.log('live2d', '模型 ' + modelId + '-' + modelTexturesId + ' 加载完成'));\n}\nfunction loadRandModel(){\n var modelId = localStorage.getItem('modelId');\n var modelTexturesId = localStorage.getItem('modelTexturesId');\n \n var modelTexturesRandMode = 'rand'; // 可选 'rand'(随机), 'switch'(顺序)\n \n $.ajax({\n cache: false,\n url: 'https://ai.3dlingyu.com/live2d/'+modelTexturesRandMode+'_textures/?id='+modelId+'-'+modelTexturesId,\n dataType: "json",\n success: function (result){\n if (result.textures['id'] == 1 && (modelTexturesId == 1 || modelTexturesId == 0)) {\n showMessage('我还没有其他衣服呢', 3000, true);\n } else {\n showMessage('我的新衣服好看嘛', 3000, true);\n }\n loadModel(modelId, result.textures['id']);\n }\n });\n}\nfunction loadOtherModel(){\n var modelId = localStorage.getItem('modelId');\n \n var modelTexturesRandMode = 'switch'; // 可选 'rand'(随机), 'switch'(顺序)\n \n $.ajax({\n cache: false,\n url: 'https://ai.3dlingyu.com/live2d/'+modelTexturesRandMode+'/?id='+modelId,\n dataType: "json",\n success: function (result){\n loadModel(result.model['id']);\n showMessage(result.model['message'], 3000, true);\n }\n });\n}\n\n
\n<meta charset="utf-8">\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<link rel="stylesheet" type="text/css" href=" ./wp-content/themes/onenav/assets/waifu.css"/ >\n<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"\n