Explorar el Código

部分外部接口未注册,临时修改

hjp hace 2 semanas
padre
commit
e7311f9ec7

+ 4 - 0
src/main/java/com/sqx/config/ShiroConfig.java

@@ -67,7 +67,11 @@ public class ShiroConfig {
         filterMap.put("/app/illegalType/**","anon");
         filterMap.put("/admin/servicetype/selectServiceTypeList", "anon");
         filterMap.put("/app/**", "anon");
+        // FIXME: START 2025/5/14 0014 临时放行
         filterMap.put("/fixedStroke/**", "anon");
+        filterMap.put("/user/**" ,"anon");
+        filterMap.put("/driver/**","anon");
+        // FIXME: END 2025/5/14 0014
         //filterMap.put("/app/userinfo","anon");
         filterMap.put("/**", "oauth2");
         shiroFilter.setFilterChainDefinitionMap(filterMap);

+ 9 - 3
src/main/java/com/sqx/modules/app/controller/app/AppController.java

@@ -19,6 +19,7 @@ import com.sqx.modules.message.dao.MessageInfoDao;
 import com.sqx.modules.message.entity.MessageInfo;
 import com.sqx.modules.timedtask.service.RiderLocationService;
 import com.sqx.modules.utils.MD5Util;
+import com.sqx.modules.utils.mock.MockAxnResponseUtil;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.apache.commons.codec.digest.DigestUtils;
@@ -86,9 +87,12 @@ public class AppController {
                 calendar.add(Calendar.HOUR,1);
                 updateSubscriptionRequest.setExpiration(DateUtils.format(calendar.getTime()));
                 updateSubscriptionRequest.setOperateType("updateExpire");
-                UpdateSubscriptionResponse updateSubscriptionResponse = client.updateSubscriptionWithOptions(updateSubscriptionRequest, runtime);
+                // FIXME: 2025/5/19 0019 START 临时不调用接口
+                /*UpdateSubscriptionResponse updateSubscriptionResponse = client.updateSubscriptionWithOptions(updateSubscriptionRequest, runtime);
                 UpdateSubscriptionResponseBody body = updateSubscriptionResponse.getBody();
-                String code = body.getCode();
+                String code = body.getCode();*/
+                String code = "OK";
+                // FIXME: 2025/5/19 0019 END
                 if("OK".equals(code)){
                     return Result.success().put("data", messageInfo1.getContent());
                 }
@@ -110,7 +114,9 @@ public class AppController {
             calendar.add(Calendar.HOUR, 1);
             bindAxnRequest.setExpiration(DateUtils.format(calendar.getTime()));
             com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
-            BindAxnResponse bindAxnResponse = client.bindAxnWithOptions(bindAxnRequest, runtime);
+            // FIXME: 2025/5/15 0015 使用模拟数据
+//            BindAxnResponse bindAxnResponse = client.bindAxnWithOptions(bindAxnRequest, runtime);
+            BindAxnResponse bindAxnResponse = MockAxnResponseUtil.mockBindAxnResponse();
             BindAxnResponseBody body = bindAxnResponse.getBody();
             String code = body.code;
             if (!"OK".equals(code)) {