瀏覽代碼

虚拟开播

dos 2 周之前
父節點
當前提交
09302c9f45
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      game-business/src/main/java/com/game/business/controller/AppUserController.java

+ 1 - 1
game-business/src/main/java/com/game/business/controller/AppUserController.java

@@ -323,7 +323,7 @@ public class AppUserController extends BaseController
         map.put("description", liveLive.getTitle());
 
         String res = HttpClientUtils.ajaxPost(url,map);
-        if(StringUtils.isBlank(res) && JSONObject.parseObject(res).getString("code") != "1"){
+        if(StringUtils.isBlank(res) || JSONObject.parseObject(res).getString("code") != "1"){
             return R.fail(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"失败");
         }
         return R.ok(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"成功");