|
|
@@ -122,6 +122,9 @@ public class live extends Controller {
|
|
|
tlive.setValue("channelcoverimageurl", polyv.getChannelImage(liveChannelResponse.getChannelId(), "unStart"));//封面图地址
|
|
|
tlive.setValue("createby", username);
|
|
|
tlive.setValue("createdate", sysdate);
|
|
|
+ if (content.containsKey("tliveapplyid")) {
|
|
|
+ tlive.setValue("tliveapplyid", content.getLong("tliveapplyid"));
|
|
|
+ }
|
|
|
content.put("tliveid", tlive.getUniqueIDValue());
|
|
|
tliveSet.save();
|
|
|
|
|
|
@@ -174,7 +177,8 @@ public class live extends Controller {
|
|
|
if (secretKey == null) {
|
|
|
return getErrReturnObject().toString();
|
|
|
} else {
|
|
|
- dbConnect.runSqlUpdate("update tlive set fisneedauth=1,secretkey='" + secretKey + "' where siteid='" + siteid + "' and tliveid='" + tliveid + "'");
|
|
|
+ String fliveshowurl = "http://123.60.111.36:8080/customer/index.html#/authLiveLogin?tliveid=" + tliveid;
|
|
|
+ dbConnect.runSqlUpdate("update tlive set fliveshowurl='" + fliveshowurl + "', fisneedauth=1,secretkey='" + secretKey + "' where siteid='" + siteid + "' and tliveid='" + tliveid + "'");
|
|
|
//需将改为新的直播观看地址
|
|
|
return queryChannelMain();
|
|
|
}
|
|
|
@@ -264,12 +268,8 @@ public class live extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String getSYLiveApplyList() {
|
|
|
-
|
|
|
- SQLFactory sqlFactory = new SQLFactory(this, "直播申请列表查询", pageSize, pageNumber, "changedate");
|
|
|
-
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "直播申请列表查询", pageSize, pageNumber, "t1.changedate");
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
-
|
|
|
-
|
|
|
return getSucReturnObject().setDataByPaging(rows).preloading(1).toString();
|
|
|
}
|
|
|
|
|
|
@@ -298,6 +298,7 @@ public class live extends Controller {
|
|
|
paoRemote.setValue("CHECKDATE", getDateTime_Str());
|
|
|
paoSetRemote.save();
|
|
|
//开启直播
|
|
|
+ content.put("tliveapplyid", tliveapplyid);
|
|
|
content.put("tagentsid", tagentsid);
|
|
|
content.put("channelname", "私域直播");
|
|
|
content.put("categoryid", getCategoryId("私域直播"));
|