18792927508 2 лет назад
Родитель
Сommit
b7b46f1350

+ 1
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Просмотреть файл

@@ -237,7 +237,7 @@ public class CaseApplicationController extends BaseController {
237 237
      * 获取UrlScheme
238 238
      */
239 239
     @Anonymous
240
-    @PostMapping("/getUrlScheme")
240
+    @GetMapping("/getUrlScheme")
241 241
     public AjaxResult getUrlScheme() {
242 242
         String schemeUrl = WxAppletNotifyUtils.jumpAppletSchemeUrl();
243 243
         return success(schemeUrl);

+ 2
- 2
ruoyi-common/src/main/java/com/ruoyi/common/utils/WxAppletNotifyUtils.java Просмотреть файл

@@ -43,8 +43,8 @@ public class WxAppletNotifyUtils {
43 43
         body.putOpt("expire_interval",30);
44 44
         String post = HttpUtil.post(url,body.toJSONString(2));
45 45
         JSONObject result = JSONUtil.parseObj(post);
46
-        if(result!=null){
47
-            result.getStr("openlink");
46
+        if(result!=null && result.containsKey("openlink")){
47
+         return    result.getStr("openlink");
48 48
         }
49 49
         return null;
50 50
     }