mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 12:47:46 +08:00
fix some code
This commit is contained in:
parent
8ec509a30b
commit
13e4b14623
@ -6,8 +6,10 @@ import me.chanjar.weixin.mp.bean.result.WxMpQrCodeTicket;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* <pre>
|
||||||
* 二维码相关操作接口
|
* 二维码相关操作接口
|
||||||
* 文档地址:https://mp.weixin.qq.com/wiki?action=doc&id=mp1443433542&t=0.9274944716856435
|
* 文档地址:https://mp.weixin.qq.com/wiki?action=doc&id=mp1443433542&t=0.9274944716856435
|
||||||
|
* </pre>
|
||||||
* @author Binary Wang
|
* @author Binary Wang
|
||||||
*/
|
*/
|
||||||
public interface WxMpQrcodeService {
|
public interface WxMpQrcodeService {
|
||||||
|
@ -43,9 +43,8 @@ public class WxMpQrcodeServiceImpl implements WxMpQrcodeService {
|
|||||||
String url = API_URL_PREFIX + "/create";
|
String url = API_URL_PREFIX + "/create";
|
||||||
JsonObject json = new JsonObject();
|
JsonObject json = new JsonObject();
|
||||||
json.addProperty("action_name", "QR_SCENE");
|
json.addProperty("action_name", "QR_SCENE");
|
||||||
if (expireSeconds != null) {
|
json.addProperty("expire_seconds", expireSeconds);
|
||||||
json.addProperty("expire_seconds", expireSeconds);
|
|
||||||
}
|
|
||||||
JsonObject actionInfo = new JsonObject();
|
JsonObject actionInfo = new JsonObject();
|
||||||
JsonObject scene = new JsonObject();
|
JsonObject scene = new JsonObject();
|
||||||
scene.addProperty("scene_id", sceneId);
|
scene.addProperty("scene_id", sceneId);
|
||||||
|
Loading…
Reference in New Issue
Block a user