|
@@ -122,10 +122,11 @@ class Video extends \yii\db\ActiveRecord |
|
@@ -122,10 +122,11 @@ class Video extends \yii\db\ActiveRecord |
122
|
->from('tbl_room')
|
122
|
->from('tbl_room')
|
123
|
->where(['room_id' => $room_id])
|
123
|
->where(['room_id' => $room_id])
|
124
|
->one();
|
124
|
->one();
|
|
|
125
|
+
|
125
|
if(!$room['status']){
|
126
|
if(!$room['status']){
|
126
|
throw new \Exception("该房间已被禁用,请联系管理员");
|
127
|
throw new \Exception("该房间已被禁用,请联系管理员");
|
127
|
}
|
128
|
}
|
128
|
- if (1) {
|
129
|
+ //if (1) {
|
129
|
$this->setAttributes([
|
130
|
$this->setAttributes([
|
130
|
'app' => $room['app'],
|
131
|
'app' => $room['app'],
|
131
|
'task_id' => 0,//$ret['task_id']
|
132
|
'task_id' => 0,//$ret['task_id']
|
|
@@ -171,9 +172,9 @@ class Video extends \yii\db\ActiveRecord |
|
@@ -171,9 +172,9 @@ class Video extends \yii\db\ActiveRecord |
171
|
/*------------清除弹幕相关redis--------------*/
|
172
|
/*------------清除弹幕相关redis--------------*/
|
172
|
$transaction->commit();
|
173
|
$transaction->commit();
|
173
|
return true;
|
174
|
return true;
|
174
|
- } else {
|
175
|
+ /*} else {
|
175
|
throw new \Exception(QcloudApiClient::self()->error());
|
176
|
throw new \Exception(QcloudApiClient::self()->error());
|
176
|
- }
|
177
|
+ }*/
|
177
|
} catch (\Exception $e) {
|
178
|
} catch (\Exception $e) {
|
178
|
$transaction->rollBack();
|
179
|
$transaction->rollBack();
|
179
|
throw new \Exception($e->getMessage());
|
180
|
throw new \Exception($e->getMessage());
|