🎨 清理部分冗余代码
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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("订阅通知直播间");
|
||||
|
||||
Reference in New Issue
Block a user