[求助]开发的私有技能无法使用,后端Rokid Focre测试已通过。

问题描述

开发了一个私有技能的demo,目的是播放本地服务器中的音频。已按照官网例子step by step做了一遍,后端采用Rokid Force,已通过模拟测试。但是在集成测试阶段,response一直为{}。通过自有设备pandas也无法调用。

意图

{
	"intents": [
		{
			"intent": "open_nas_media",
			"slots": [],
			"user_says": [
				"打开纳爱斯",
				"纳爱斯"
			]
		}
	]
}

后端

exports.handler = function(event, context, callback) {
    var rokid = Rokid.handler(event, context,callback);
    rokid.registerHandlers(handlers);
    rokid.execute();
};
    
var handlers = {
    'open_nas_media':function() {
        try {
            this.setTts({tts:'纳斯中的音乐库已经打开!'});
            this.emit(':done');
        } catch (e) {
            this.emit(':error', e);
        }
    },
    'ROKID.INTENT.WELCOME':function() {
        try {
            this.setTts({tts:'欢迎你使用纳斯'});
            this.emit(':done');
        } catch (e) {
            this.emit(':error', e);
        }
    },
    'ROKID.INTENT.EXIT':function() {
        try {
            console.log('技能退出成功');
            this.emit(':done');
        } catch (e) {
            this.emit(':error', e);
        }
    }
};

集成测试请求

{
    "version": "2.0.0",
    "session": {
        "sessionId": "55AA0EE7CC704C46B48B2C38E7F81FEE",
        "newSession": true
    },
    "context": {
        "application": {
            "applicationId": "R6A6A14FE08440DE9CA1FB898D4DE408",
            "media": {
                "state": "IDLE"
            }
        },
        "device": {
            "basic": {
                "vendor": "EC22FB301A8044BE8B0372E585CF182A",
                "deviceType": "test_rokid_device_type_id",
                "deviceId": "test_rokid_device_id",
                "masterId": "5826ba1b-d344-4d81-b677-0cc947bb235a",
                "voicetrigger": "",
                "locale": "zh-cn",
                "timestamp": 1625282034123
            },
            "media": {
                "state": "IDLE"
            },
            "deviceMode": {
                "userMode": {
                    "childMode": false
                },
                "linkage": {
                    "trigger": false
                }
            }
        },
        "user": {
            "userId": "5826ba1b-d344-4d81-b677-0cc947bb235a"
        },
        "voiceprint": {
            "voiceprintId": "",
            "voiceprintName": ""
        }
    },
    "request": {
        "reqType": "INTENT",
        "reqId": "843aa2d622dc4a26f470a5404356f904",
        "content": {
            "domain": "custom.skill.R9630BA9A7EE4D729F313430708784B7",
            "intent": "open_nas_media",
            "sentence": "打开纳爱斯",
            "slots": {}
        }
    }
}

此处的响应为空 {}