|
|
@@ -249,11 +249,13 @@ public class live extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String liveauthorization() {
|
|
|
+ if (!content.containsKey("tliveid")) {
|
|
|
+ return getErrReturnObject().setErrMsg("Ö±²¥Á´½ÓÎÞЧ").toString();
|
|
|
+ }
|
|
|
String tliveid = content.getString("tliveid");//Ö±²¥ID
|
|
|
-
|
|
|
Rows rows = dbConnect.runSqlQuery("select channelId,secretkey from tlive where siteid='" + siteid + "' and tliveid='" + tliveid + "'");
|
|
|
if (rows.isEmpty()) {
|
|
|
- return getErrReturnObject().toString();
|
|
|
+ return getErrReturnObject().setErrMsg("Ö±²¥Á´½ÓÎÞЧ").toString();
|
|
|
}
|
|
|
return getSucReturnObject().setData(new Polyv().getSignUrl(rows.get(0).getString("channelId"), rows.get(0).getString("secretkey"), userid)).toString();
|
|
|
}
|