作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -166,7 +166,8 @@ class VideoTask extends Command @@ -166,7 +166,8 @@ class VideoTask extends Command
166 ], 166 ],
167 'task_id' => $task_id, 167 'task_id' => $task_id,
168 'callback_url' => env('APP_URL') . '/api/video_task_callback', 168 'callback_url' => env('APP_URL') . '/api/video_task_callback',
169 - 'is_ytb'=>false 169 + 'is_ytb'=>false,
  170 + 'other_language_subtitle'=>false
170 ]; 171 ];
171 $result = Http::post('http://216.250.255.116:7866/create_task', $data); 172 $result = Http::post('http://216.250.255.116:7866/create_task', $data);
172 $res_json = json_decode($result,true); 173 $res_json = json_decode($result,true);
@@ -608,6 +608,9 @@ class ProjectController extends BaseController @@ -608,6 +608,9 @@ class ProjectController extends BaseController
608 */ 608 */
609 public function getManagerList(){ 609 public function getManagerList(){
610 $hrManagerModel = new ManageHr(); 610 $hrManagerModel = new ManageHr();
  611 + if(!isset($this->map['status'])){
  612 + $this->map['status'] = $hrManagerModel::STATUS_ONE;
  613 + }
611 if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){ 614 if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){
612 $this->map['entry_position'] = ['in',$this->map['entry_position']]; 615 $this->map['entry_position'] = ['in',$this->map['entry_position']];
613 } 616 }
@@ -111,7 +111,7 @@ class RenewProjectController extends BaseController @@ -111,7 +111,7 @@ class RenewProjectController extends BaseController
111 if(!empty($this->map['title'])){ 111 if(!empty($this->map['title'])){
112 $this->map['title'] = ['like', '%'.$this->map['title'].'%']; 112 $this->map['title'] = ['like', '%'.$this->map['title'].'%'];
113 } 113 }
114 - $lists = $project->where($this->map)->with('payment')->with('deploy_build') 114 + $lists = $project->formatQuery($this->map)->with('payment')->with('deploy_build')
115 ->with('deploy_optimize')->with('online_check') 115 ->with('deploy_optimize')->with('online_check')
116 ->with('project_after')->paginate($this->row, ['*'], 'page', $this->page); 116 ->with('project_after')->paginate($this->row, ['*'], 'page', $this->page);
117 if(!empty($lists)){ 117 if(!empty($lists)){
@@ -162,7 +162,8 @@ class RenewLogic extends BaseLogic @@ -162,7 +162,8 @@ class RenewLogic extends BaseLogic
162 $project = new Project(); 162 $project = new Project();
163 return $project->edit([ 163 return $project->edit([
164 'extend_type'=>0, 164 'extend_type'=>0,
165 - 'type'=>$type 165 + 'type'=>$type,
  166 + 'site_status'=>0
166 ],[ 167 ],[
167 'id'=>$id 168 'id'=>$id
168 ]); 169 ]);