| | |
| | | import com.qxueyou.scc.sdk.MTCloud; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @Api(tags="直播接口-学员端") |
| | | @RestController |
| | | @CrossOrigin |
| | | @RequestMapping(value = "/stu/live") |
| | | public class StuLiveController { |
| | | |
| | |
| | | if(userId.equals("")){ |
| | | userId= randomId(); |
| | | } |
| | | if(userName.equals("") || userName==null){ |
| | | userName= "游客"; |
| | | } |
| | | |
| | | String res = client.courseAccess(couresId,userId,userName, MTCloud.ROLE_USER, 10000, options); |
| | | JSONObject jsonObject = JSON.parseObject(res); |