diff --git a/Go1-QQBotDemo/config.json b/Go1-QQBotDemo/config.json index f1782a7e1..2534b6500 100644 --- a/Go1-QQBotDemo/config.json +++ b/Go1-QQBotDemo/config.json @@ -19,10 +19,11 @@ "type": "web", "runtime": "Go1", "readme": "https://github.com/tencentyun/serverless-demo/tree/master/Go1-QQBotDemo", - "version": "1.0.10", + "version": "1.0.11", "tags": [ "Go1", - "QQBot" + "QQBot", + "WebFunc" ] } } diff --git a/Go1-QQBotDemo/serverless.yml b/Go1-QQBotDemo/serverless.yml index 29d07e338..fe9f8002c 100755 --- a/Go1-QQBotDemo/serverless.yml +++ b/Go1-QQBotDemo/serverless.yml @@ -4,15 +4,27 @@ inputs: src: src: ./src region: ap-guangzhou + type: web name: qqbot_demo runtime: Go1 handler: main memorySize: 128 timeout: 3 + publicAccess: true + eip: true environment: - key: QQBotAppID value: appid of QQBot - key: QQBotSecret value: secret of QQBot - key: HYApiKey - value: hunyuan apikey \ No newline at end of file + value: hunyuan apikey + events: + - http: + parameters: + name: url-trigger + netConfig: + enableIntranet: false + enableExtranet: true + qualifier: $DEFAULT + authType: NONE \ No newline at end of file diff --git a/Go1-QQBotDemo/src/qqbot-demo/docs/images/hunyuan_api_key.png b/Go1-QQBotDemo/src/qqbot-demo/docs/images/hunyuan_api_key.png index f4838830c..fbead1c93 100644 Binary files a/Go1-QQBotDemo/src/qqbot-demo/docs/images/hunyuan_api_key.png and b/Go1-QQBotDemo/src/qqbot-demo/docs/images/hunyuan_api_key.png differ diff --git a/Go1-QQBotDemo/src/qqbot-demo/docs/images/set_env_vars.png b/Go1-QQBotDemo/src/qqbot-demo/docs/images/set_env_vars.png index dd72b7ad8..34f8c027d 100644 Binary files a/Go1-QQBotDemo/src/qqbot-demo/docs/images/set_env_vars.png and b/Go1-QQBotDemo/src/qqbot-demo/docs/images/set_env_vars.png differ