|
@@ -213,12 +213,18 @@ public class live extends Controller {
|
|
|
String channelid = rows.get(0).getString("channelid");
|
|
String channelid = rows.get(0).getString("channelid");
|
|
|
Polyv polyv = new Polyv();
|
|
Polyv polyv = new Polyv();
|
|
|
if (polyv.deleteChannel(channelid)) {
|
|
if (polyv.deleteChannel(channelid)) {
|
|
|
- SQLFactory sqlFactory=new SQLFactory(this,"Ö±²¥¼äɾ³ý");
|
|
|
|
|
- sqlFactory.addParameter("siteid",siteid);
|
|
|
|
|
- sqlFactory.addParameter("tliveid",tliveid);
|
|
|
|
|
- dbConnect.runSqlUpdate(sqlFactory.getSQL());
|
|
|
|
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this, "Ö±²¥¼äɾ³ý");
|
|
|
|
|
+ sqlFactory.addParameter("siteid", siteid);
|
|
|
|
|
+ sqlFactory.addParameter("tliveid", tliveid);
|
|
|
|
|
+ String status = dbConnect.runSqlUpdate(sqlFactory.getSQL());
|
|
|
|
|
+ if ("true".equalsIgnoreCase(status)) {
|
|
|
|
|
+ return getSucReturnObject().toString();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return getErrReturnObject().setErrMsg(status).toString();
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return getErrReturnObject().setErrMsg("Ö±²¥¼äɾ³ýʧ°Ü").toString();
|
|
|
}
|
|
}
|
|
|
- return getSucReturnObject().toString();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|