Bläddra i källkod

1、手动发送链接直播短链

yys 3 veckor sedan
förälder
incheckning
095d60a4d6

+ 1 - 1
fs-company/src/main/java/com/fs/company/controller/live/LiveController.java

@@ -410,7 +410,7 @@ public class LiveController extends BaseController
     @ApiOperation("创建App跳转通用链接")
     @GetMapping("/createAppLink")
     @PreAuthorize("@ss.hasPermi('live:live:createAppLink')")
-    public R createAppLink(@RequestParam("liveId") Long liveId,@RequestParam("corpId")String corpId) {
+    public R createAppLink(@RequestParam("liveId") Long liveId, @RequestParam(value = "corpId", required = false) String corpId) {
         CompanyUser user = SecurityUtils.getLoginUser().getUser();
         return liveService.createAppLink(user,liveId,corpId);
     }

+ 1 - 1
fs-company/src/main/resources/application.yml

@@ -5,7 +5,7 @@ spring:
   profiles:
 #    active: dev
 #    active: druid-jnsyj-test
-    active: druid-jnmy-test
+    active: druid-tyt-test
 #    active: druid-jzzx-test
 #    active: druid-hdt
 #    active: druid-bjzm-test

+ 0 - 4
fs-service/src/main/java/com/fs/live/service/impl/LiveServiceImpl.java

@@ -231,10 +231,6 @@ public class LiveServiceImpl implements ILiveService
             return R.error("销售账号请绑定销售公司");
         }
 
-        if(corpId == null){
-            return R.error("请选择企微公司,方便判定客户归属!");
-        }
-
         // 手动创建 FsCourseLink 对象,避免使用 BeanUtils.copyProperties
         FsCourseLink link = new FsCourseLink();
         link.setCompanyId(user.getCompanyId());