3
3
import com .google .gson .JsonObject ;
4
4
import me .chanjar .weixin .common .bean .result .WxError ;
5
5
import me .chanjar .weixin .common .exception .WxErrorException ;
6
- import me .chanjar .weixin .common .util .http .SimplePostRequestExecutor ;
7
6
import me .chanjar .weixin .mp .api .WxMpQrcodeService ;
8
7
import me .chanjar .weixin .mp .api .WxMpService ;
9
8
import me .chanjar .weixin .mp .bean .result .WxMpQrCodeTicket ;
@@ -52,7 +51,7 @@ public WxMpQrCodeTicket qrCodeCreateTmpTicket(int sceneId, Integer expireSeconds
52
51
scene .addProperty ("scene_id" , sceneId );
53
52
actionInfo .add ("scene" , scene );
54
53
json .add ("action_info" , actionInfo );
55
- String responseContent = this .wxMpService .execute ( new SimplePostRequestExecutor (), url , json .toString ());
54
+ String responseContent = this .wxMpService .post ( url , json .toString ());
56
55
return WxMpQrCodeTicket .fromJson (responseContent );
57
56
}
58
57
@@ -70,7 +69,7 @@ public WxMpQrCodeTicket qrCodeCreateLastTicket(int sceneId) throws WxErrorExcept
70
69
scene .addProperty ("scene_id" , sceneId );
71
70
actionInfo .add ("scene" , scene );
72
71
json .add ("action_info" , actionInfo );
73
- String responseContent = this .wxMpService .execute ( new SimplePostRequestExecutor (), url , json .toString ());
72
+ String responseContent = this .wxMpService .post ( url , json .toString ());
74
73
return WxMpQrCodeTicket .fromJson (responseContent );
75
74
}
76
75
@@ -84,7 +83,7 @@ public WxMpQrCodeTicket qrCodeCreateLastTicket(String sceneStr) throws WxErrorEx
84
83
scene .addProperty ("scene_str" , sceneStr );
85
84
actionInfo .add ("scene" , scene );
86
85
json .add ("action_info" , actionInfo );
87
- String responseContent = this .wxMpService .execute ( new SimplePostRequestExecutor (), url , json .toString ());
86
+ String responseContent = this .wxMpService .post ( url , json .toString ());
88
87
return WxMpQrCodeTicket .fromJson (responseContent );
89
88
}
90
89
0 commit comments