download-script.js:63 GET http://localhost:7456/plugins/ccservices-scripts/AgoraRTCSDK-2.5.2.js net::ERR_ABORTED 500 (Internal Server Error)
ailed to load resource: the server responded with a status of 500 (Internal Server Error)
没人吗?这个是cocos的付费服务啊。收费的东西出问题没人来帮忙解决下吗?
截图丢出来看看
{$当前用户目录$}/.CocosCreator/services/agora/resources/ccservices-agora-preview-script/main.js
{$当前项目目录$}/packages/ccservices-agora-preview-script/main.js
这两个文件的
this.router.get('/settings.js', this.getSettings.bind(this));
下面插入一行代码
this.router.get('/plugins/' + Paths.sdkURL, this.getSDK.bind(this));,
插入完成后长这样
hookPreviewServer() {
if (this.router) return;
this.router = Router();
Editor.PreviewServer.userMiddlewares.push(this.router);
this.router.get('/settings.js', this.getSettings.bind(this));
this.router.get('/plugins/' + Paths.sdkURL, this.getSDK.bind(this));
this.router.get('/res/raw-' + Paths.sdkURL, this.getSDK.bind(this));
},
