张延森 3 лет назад
Родитель
Сommit
a0b3b3770b
5 измененных файлов: 41 добавлений и 3 удалений
  1. 0
    1
      .gitignore
  2. 5
    0
      deploy/bootstrap
  3. 34
    0
      deploy/s.yml
  4. 1
    1
      pom.xml
  5. 1
    1
      src/main/java/com/yunzhi/roundabout/controller/TaPersonController.java

+ 0
- 1
.gitignore Просмотреть файл

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

+ 5
- 0
deploy/bootstrap Просмотреть файл

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

+ 34
- 0
deploy/s.yml Просмотреть файл

@@ -0,0 +1,34 @@
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 Просмотреть файл

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

+ 1
- 1
src/main/java/com/yunzhi/roundabout/controller/TaPersonController.java Просмотреть файл

@@ -122,7 +122,7 @@ public class TaPersonController extends BaseController {
122 122
     @ApiOperation(value="WXJDK", notes = "WXJDK", httpMethod = "GET", response = ResponseBean.class)
123 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 126
         if (StringUtils.isEmpty(wxresp)) {
127 127
             return ResponseBean.error("分享地址不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
128 128
         }