张延森 3 years ago
parent
commit
a0b3b3770b

+ 0
- 1
.gitignore View File

1
 HELP.md
1
 HELP.md
2
 target/
2
 target/
3
-deploy/
4
 !.mvn/wrapper/maven-wrapper.jar
3
 !.mvn/wrapper/maven-wrapper.jar
5
 !**/src/main/**/target/
4
 !**/src/main/**/target/
6
 !**/src/test/**/target/
5
 !**/src/test/**/target/

+ 5
- 0
deploy/bootstrap View File

1
+#!/bin/bash
2
+#
3
+#
4
+
5
+java -jar ./roundabout-0.0.4.jar

+ 34
- 0
deploy/s.yml View File

1
+edition: 1.0.0          #  命令行YAML规范版本,遵循语义化版本(Semantic Versioning)规范。
2
+name: honghe-plat        #  项目名称。
3
+access: default         #  密钥别名。
4
+
5
+services:
6
+  dianyang: #  服务名称。
7
+    component: devsapp/fc
8
+    props: #  组件的属性值。
9
+      region: cn-shanghai
10
+      service:
11
+        name: honghe-plat
12
+        description: '红鹤集团'
13
+        internetAccess: true
14
+      function:
15
+        name: roundabout-func
16
+        description: 'Roundabout h5'
17
+        ossBucket: yz-serverless
18
+        ossKey: honghe/roundabout-0.0.4.zip
19
+        handler: 'com.yunzhi.roundabout.Application::main'
20
+        memorySize: 1024
21
+        timeout: 30
22
+        runtime: custom
23
+        caPort: 9000
24
+        initializationTimeout: 30
25
+      triggers:
26
+        - name: httpRoundabout
27
+          type: http
28
+          config:
29
+            authType: anonymous
30
+            methods:
31
+              - GET
32
+              - POST
33
+              - PUT
34
+              - DELETE

+ 1
- 1
pom.xml View File

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.yunzhi</groupId>
11
 	<groupId>com.yunzhi</groupId>
12
 	<artifactId>roundabout</artifactId>
12
 	<artifactId>roundabout</artifactId>
13
-	<version>0.0.3</version>
13
+	<version>0.0.4</version>
14
 	<name>roundabout</name>
14
 	<name>roundabout</name>
15
 	<description>华侨城-摩天轮</description>
15
 	<description>华侨城-摩天轮</description>
16
 	<properties>
16
 	<properties>

+ 1
- 1
src/main/java/com/yunzhi/roundabout/controller/TaPersonController.java View File

122
     @ApiOperation(value="WXJDK", notes = "WXJDK", httpMethod = "GET", response = ResponseBean.class)
122
     @ApiOperation(value="WXJDK", notes = "WXJDK", httpMethod = "GET", response = ResponseBean.class)
123
     public ResponseBean gameStart(@ApiParam("分享地址") @RequestParam String url) throws Exception{
123
     public ResponseBean gameStart(@ApiParam("分享地址") @RequestParam String url) throws Exception{
124
 
124
 
125
-        String wxresp = httpUtils.get(wxApi + "/mp/jssdk?url=" + url);
125
+        String wxresp = httpUtils.get(wxApi + "/mp/jssdk?url=" + StringUtils.encodeURIComponent(url) );
126
         if (StringUtils.isEmpty(wxresp)) {
126
         if (StringUtils.isEmpty(wxresp)) {
127
             return ResponseBean.error("分享地址不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
127
             return ResponseBean.error("分享地址不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
128
         }
128
         }