Explorar el Código

Merge branch 'master' of http://git.ycjcjy.com/niucai/app-service

Your Name hace 4 años
padre
commit
1cf6c4f2bb

+ 8
- 0
pom.xml Ver fichero

@@ -119,6 +119,14 @@
119 119
 			<version>3.0.0</version>
120 120
 		</dependency>
121 121
 		<!--swagger end-->
122
+
123
+		<dependency>
124
+			<groupId>Pingplusplus</groupId>
125
+			<artifactId>pingpp-java</artifactId>
126
+			<version>2.4.0</version>
127
+			<type>jar</type>
128
+		</dependency>
129
+
122 130
 	</dependencies>
123 131
 
124 132
 	<profiles>

+ 3
- 0
src/main/java/com/yunzhi/niucai/interceptor/PermissionInterceptor.java Ver fichero

@@ -22,6 +22,9 @@ public class PermissionInterceptor implements HandlerInterceptor {
22 22
     public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object obj) throws Exception {
23 23
         log.info("Request URI: {}", request.getRequestURI());
24 24
 
25
+        if (request.getRequestURI().startsWith("/api/pingpp")){
26
+            return true;
27
+        }
25 28
         // JWT
26 29
         String jws = JWTUtils.getToken(request);
27 30
         if (StringUtils.isEmpty(jws)) {

+ 14
- 0
src/main/resources/application-dev.yml Ver fichero

@@ -19,3 +19,17 @@ logging:
19 19
 #    sign: 牛彩
20 20
 #    # 有效时间 单位秒
21 21
 #    expire: 300
22
+
23
+pingpp:
24
+  appId: app_ynTWjD1OGSq9G4qz
25
+  apiKey: sk_test_1u9a18PeXfjP04GK8GbL4ybD
26
+  privateKey: -----BEGIN PUBLIC KEY-----
27
+               MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx1EJNIkSseFlkaZaE/vh
28
+               QS8AOQIbjpppyYNJv5nSAt/rRNJL+ZO3rd/ZdGx0uPUXJsQeUONkE8qqijhgDsgI
29
+               0ZRsRWo+fW1qTGjKJffTCiXIAIVGlQOOgK4hmiPzVqZnpqs51lhTbQicN8uiCVx2
30
+               0ujvYPPCzJqEOITS5RFYJpxFMlpumtWKr5MItu/aINVaLTd0pqKAdZaMaDjLki/d
31
+               5jrHR2HsZNJO1G91UqHS10J3/tG0rOZvxqbvDDslm1SYIo9AgDyw0AaqVqaPsLyW
32
+               0qoI4F8ayZVD3XEu+bWpBjhjaXEGbZu8FjvzhuZhlZvHDl8oT/V8ksXBY2Ibk+rm
33
+               swIDAQAB
34
+               -----END PUBLIC KEY-----
35
+  successUrl: https://127.0.0.1/api/pingpp/callback

+ 5
- 5
src/main/resources/mapper/TaLotteryResultMapper.xml Ver fichero

@@ -6,11 +6,11 @@
6 6
         SELECT
7 7
             a.*
8 8
         FROM
9
-            ( SELECT * FROM ta_lottery_result t WHERE t.`status` = 1 ORDER BY t.issue_no DESC LIMIT 100 ) a
9
+            ( SELECT *
10
+                FROM
11
+                ( SELECT * FROM ta_lottery_result t WHERE t.`status` = 1 HAVING 1 ORDER BY t.issue_no DESC ) s
12
+                GROUP BY s.lottery_id
13
+            ) a
10 14
         INNER JOIN td_lottery b USING ( lottery_id )
11
-        GROUP BY
12
-            a.lottery_id
13
-        ORDER BY
14
-            b.sort_no
15 15
     </select>
16 16
 </mapper>