跳转微信小程序接口
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ public class CaseApplicationController extends BaseController {
|
|||||||
* 获取UrlScheme
|
* 获取UrlScheme
|
||||||
*/
|
*/
|
||||||
@Anonymous
|
@Anonymous
|
||||||
@PostMapping("/getUrlScheme")
|
@GetMapping("/getUrlScheme")
|
||||||
public AjaxResult getUrlScheme() {
|
public AjaxResult getUrlScheme() {
|
||||||
String schemeUrl = WxAppletNotifyUtils.jumpAppletSchemeUrl();
|
String schemeUrl = WxAppletNotifyUtils.jumpAppletSchemeUrl();
|
||||||
return success(schemeUrl);
|
return success(schemeUrl);
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ public class WxAppletNotifyUtils {
|
|||||||
body.putOpt("expire_interval",30);
|
body.putOpt("expire_interval",30);
|
||||||
String post = HttpUtil.post(url,body.toJSONString(2));
|
String post = HttpUtil.post(url,body.toJSONString(2));
|
||||||
JSONObject result = JSONUtil.parseObj(post);
|
JSONObject result = JSONUtil.parseObj(post);
|
||||||
if(result!=null){
|
if(result!=null && result.containsKey("openlink")){
|
||||||
result.getStr("openlink");
|
return result.getStr("openlink");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user