dos 2 hete
szülő
commit
89f36a8a70

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

@@ -315,7 +315,7 @@ public class AppUserController extends BaseController
     @ApiOperation(value = "开关播", notes = "开关播")
     public R<String> openLive(HttpServletResponse response, @RequestBody LiveLive liveLive)
     {
-        String url = sysConfigService.selectConfigByKey("sys_live_apiurl").concat("live/openCloseLive");
+        String url = sysConfigService.selectConfigByKey("sys_live_apiurl").concat("/api/live/httpOpenCloseLive");
         Map<String, String> map = new HashMap<>();
         map.put("roomId", String.valueOf(liveLive.getId()));
         map.put("liveType", "1");
@@ -323,7 +323,8 @@ 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").equals("1")){
+            log.info("失败===============》》".concat(res));
             return R.fail(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"失败");
         }
         return R.ok(liveLive.getIslive().intValue()==1?"关播":"虚拟开播"+"成功");

+ 2 - 2
game-ui/src/views/business/channel/index.vue

@@ -180,12 +180,12 @@
 <!--      <el-table-column label="渠道key" align="center" prop="channelKey" />-->
       <el-table-column label="充值手续费" align="center" prop="rate">
         <template slot-scope="scope">
-          {{scope.row.rate * 100 + "%"}}
+          {{(scope.row.rate * 100).toFixed(2) + "%"}}
         </template>
       </el-table-column>
       <el-table-column label="提现手续费" align="center" prop="withdrawRate">
         <template slot-scope="scope">
-          {{scope.row.withdrawRate * 100 + "%"}}
+          {{(scope.row.withdrawRate * 100).toFixed(2) + "%"}}
         </template>
       </el-table-column>
       <el-table-column label="是否开启" align="center" prop="status">