直播间删除商品,返回错误

This commit is contained in:
lifenlong 2021-06-23 15:37:49 +08:00
parent b574dfb04f
commit c1bce3fc3b

View File

@ -156,7 +156,11 @@ public class WechatLivePlayerUtil {
String content = HttpUtils.doPostWithJson(url, map);
JSONObject json = new JSONObject(content);
log.info("微信小程序直播间删除商品:" + content);
return json.getStr("errcode").equals("0");
if(json.getStr("errcode").equals("0")){
return true;
}
throw new ServiceException(json.getStr("errmsg"));
}
/**