|
|
@@ -269,14 +269,14 @@ class LiveService extends BaseService
|
|
|
{
|
|
|
$id = request()->post('id', 0);
|
|
|
$status = request()->post('status', 2);
|
|
|
- if ($id && !$this->model->where(['id' => $id, 'mark' => 1])->value('id')) {
|
|
|
+ if ($id && !$info = $this->model->where(['id' => $id, 'mark' => 1])->select(['id','views','reward_total','like_num'])->first()) {
|
|
|
$this->error = 2981;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if($this->model->where(['id'=> $id,'mark'=>1])->update(['status'=>$status, 'update_time'=> time()])){
|
|
|
$this->error = 1002;
|
|
|
- return true;
|
|
|
+ return $info;
|
|
|
}
|
|
|
|
|
|
$this->error = 1003;
|
|
|
@@ -414,4 +414,6 @@ class LiveService extends BaseService
|
|
|
$this->error = 2041;
|
|
|
return $data;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|