提交修改
This commit is contained in:
parent
315ab018e4
commit
008b51ec0d
@ -33,7 +33,7 @@ public class AppLinkController {
|
|||||||
@Describe("生成link")
|
@Describe("生成link")
|
||||||
@RequestMapping("/link")
|
@RequestMapping("/link")
|
||||||
public R link(@RequestBody AppLinkRequest request) {
|
public R link(@RequestBody AppLinkRequest request) {
|
||||||
String url = weChatUtils.jumpAppletShortUrl("abc", "89ew8392", 30);
|
String url = weChatUtils.jumpAppletShortUrl("/pages/index/index", "?type=1", 30);
|
||||||
|
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
@ -47,8 +47,8 @@ public class AppLinkController {
|
|||||||
@Describe("生成")
|
@Describe("生成")
|
||||||
@RequestMapping("/shortLink")
|
@RequestMapping("/shortLink")
|
||||||
public R shortlink(@RequestBody AppShortLinkRequest request) {
|
public R shortlink(@RequestBody AppShortLinkRequest request) {
|
||||||
String url = weChatUtils.genShortlink("abc", "89ew8392", 30);
|
String url = weChatUtils.genShortlink("/pages/index/index", "ewiiwe", 30);
|
||||||
return R.ok();
|
return R.ok().setData(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.heyu.api.controller.vv;
|
package com.heyu.api.controller.vv;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.heyu.api.alibaba.request.vv.AppQrCodeRequest;
|
import com.heyu.api.alibaba.request.vv.AppQrCodeRequest;
|
||||||
import com.heyu.api.common.annotation.Describe;
|
import com.heyu.api.common.annotation.Describe;
|
||||||
import com.heyu.api.data.dto.AccessTokenDTO;
|
import com.heyu.api.data.dto.AccessTokenDTO;
|
||||||
@ -61,6 +62,11 @@ public class AppQrCodeController {
|
|||||||
// 透明
|
// 透明
|
||||||
body.put("is_hyaline", true); // 默认是false,是否需要透明底色,为 true 时,生成透明底色的小程序
|
body.put("is_hyaline", true); // 默认是false,是否需要透明底色,为 true 时,生成透明底色的小程序
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
log.info("AppQrCodeController create qr code url : {},body:{} ",url , JSON.toJSONString(body));
|
||||||
|
|
||||||
|
|
||||||
byte[] bytes = HttpUtils.getWechatQrcodeByHttpURL(url, body);
|
byte[] bytes = HttpUtils.getWechatQrcodeByHttpURL(url, body);
|
||||||
|
|
||||||
if (bytes == null) {
|
if (bytes == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user