Skip to content

Commit 13e4b14

Browse files
committed
fix some code
1 parent 8ec509a commit 13e4b14

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpQrcodeService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
import java.io.File;
77

88
/**
9+
* <pre>
910
* 二维码相关操作接口
1011
* 文档地址:https://mp.weixin.qq.com/wiki?action=doc&id=mp1443433542&t=0.9274944716856435
12+
* </pre>
1113
* @author Binary Wang
1214
*/
1315
public interface WxMpQrcodeService {

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpQrcodeServiceImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ public WxMpQrCodeTicket qrCodeCreateTmpTicket(int sceneId, Integer expireSeconds
4343
String url = API_URL_PREFIX + "/create";
4444
JsonObject json = new JsonObject();
4545
json.addProperty("action_name", "QR_SCENE");
46-
if (expireSeconds != null) {
47-
json.addProperty("expire_seconds", expireSeconds);
48-
}
46+
json.addProperty("expire_seconds", expireSeconds);
47+
4948
JsonObject actionInfo = new JsonObject();
5049
JsonObject scene = new JsonObject();
5150
scene.addProperty("scene_id", sceneId);

0 commit comments

Comments
 (0)