|
@@ -97,6 +97,7 @@ public class live extends Controller {
|
|
|
long tagentsid = content.getLong("tagentsid");
|
|
long tagentsid = content.getLong("tagentsid");
|
|
|
String channelname = content.getString("channelname");
|
|
String channelname = content.getString("channelname");
|
|
|
int categoryid = content.getInteger("categoryid");
|
|
int categoryid = content.getInteger("categoryid");
|
|
|
|
|
+ long tactivityid = content.getLongValue("tactivityid");
|
|
|
String channelPasswd = createPassWord();
|
|
String channelPasswd = createPassWord();
|
|
|
Polyv polyv = new Polyv();
|
|
Polyv polyv = new Polyv();
|
|
|
LiveChannelResponse liveChannelResponse = polyv.createChannel(channelname, channelPasswd, categoryid);
|
|
LiveChannelResponse liveChannelResponse = polyv.createChannel(channelname, channelPasswd, categoryid);
|
|
@@ -106,6 +107,9 @@ public class live extends Controller {
|
|
|
tlive.setValue("siteid", siteid);
|
|
tlive.setValue("siteid", siteid);
|
|
|
tlive.setValue("tagentsid", tagentsid);
|
|
tlive.setValue("tagentsid", tagentsid);
|
|
|
tlive.setValue("categoryid", categoryid);//分类ID
|
|
tlive.setValue("categoryid", categoryid);//分类ID
|
|
|
|
|
+ if (tactivityid > 0) {
|
|
|
|
|
+ tlive.setValue("tactivityid", tactivityid);//活动ID
|
|
|
|
|
+ }
|
|
|
tlive.setValue("categoryname", polyv.listCategory().get(categoryid));//分类名称
|
|
tlive.setValue("categoryname", polyv.listCategory().get(categoryid));//分类名称
|
|
|
tlive.setValue("channelid", liveChannelResponse.getChannelId());//频道ID
|
|
tlive.setValue("channelid", liveChannelResponse.getChannelId());//频道ID
|
|
|
tlive.setValue("channelname", liveChannelResponse.getName());//频道名称
|
|
tlive.setValue("channelname", liveChannelResponse.getName());//频道名称
|