1
0
mirror of synced 2025-12-23 02:18:07 +08:00

🎨 清理部分冗余代码

This commit is contained in:
Binary Wang
2020-06-30 17:21:55 +08:00
parent a00d67a58a
commit 7d20aa1743
8 changed files with 11 additions and 91 deletions

View File

@@ -29,7 +29,7 @@ public class WxMaLiveGoodsServiceImplTest {
@Test
public void addGoods() throws Exception {
//上传临时素材
WxMediaUploadResult mediaUpload = this.wxService.getMaterialService().mediaUpload("image", new File("E:\\1.png"));
WxMediaUploadResult mediaUpload = this.wxService.getMediaService().uploadMedia("image", new File("E:\\1.png"));
WxMaLiveInfo.Goods goods = new WxMaLiveInfo.Goods();
goods.setCoverImgUrl(mediaUpload.getMediaId());

View File

@@ -31,7 +31,7 @@ public class WxMaLiveServiceImplTest {
@Test
public void createRoom() throws Exception {
//上传临时素材
WxMediaUploadResult mediaUpload = this.wxService.getMaterialService().mediaUpload("image", new File("E:\\1.png"));
WxMediaUploadResult mediaUpload = this.wxService.getMediaService().uploadMedia("image", new File("E:\\1.png"));
WxMaLiveInfo.RoomInfo roomInfo = new WxMaLiveInfo.RoomInfo();
roomInfo.setName("订阅通知直播间");