Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
3 个修改的文件
包含
8 行增加
和
4 行删除
| @@ -156,8 +156,11 @@ class VideoTask extends Command | @@ -156,8 +156,11 @@ class VideoTask extends Command | ||
| 156 | 'is_ytb'=>true | 156 | 'is_ytb'=>true |
| 157 | ]; | 157 | ]; |
| 158 | $result = Http::post('http://216.250.255.116:7866/create_task', $data); | 158 | $result = Http::post('http://216.250.255.116:7866/create_task', $data); |
| 159 | + $res_json = json_decode($result,true); | ||
| 159 | $val->task_id = $task_id; | 160 | $val->task_id = $task_id; |
| 161 | + if(isset($res_json['code']) && ($res_json['code'] == 200)){ | ||
| 160 | $val->status = KeywordVideoTaskLog::STATUS_RUNNING; | 162 | $val->status = KeywordVideoTaskLog::STATUS_RUNNING; |
| 163 | + } | ||
| 161 | $val->result_info = $result; | 164 | $val->result_info = $result; |
| 162 | $val->save(); | 165 | $val->save(); |
| 163 | } | 166 | } |
| @@ -313,7 +313,8 @@ class NewsController extends BaseController | @@ -313,7 +313,8 @@ class NewsController extends BaseController | ||
| 313 | ],[ | 313 | ],[ |
| 314 | 'keyword.required' => 'keyword不能为空', | 314 | 'keyword.required' => 'keyword不能为空', |
| 315 | ]); | 315 | ]); |
| 316 | - $data = http_get('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword'],['charset=utf-8']); | 316 | + $data = shell_exec('curl -k "http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword'].'"'); |
| 317 | +// $data = http_get('http://gnews.globalso.com/gnews_news.php?keyword='.$this->param['keyword'],['charset=utf-8']); | ||
| 317 | $this->response('success',Code::SUCCESS,$data); | 318 | $this->response('success',Code::SUCCESS,$data); |
| 318 | } | 319 | } |
| 319 | } | 320 | } |
| @@ -223,19 +223,19 @@ class UserLoginLogic | @@ -223,19 +223,19 @@ class UserLoginLogic | ||
| 223 | $date = date('Y-m-d H:i:s'); | 223 | $date = date('Y-m-d H:i:s'); |
| 224 | $scoringSystem = new ScoringSystem(); | 224 | $scoringSystem = new ScoringSystem(); |
| 225 | if($date <= $after30Days){ | 225 | if($date <= $after30Days){ |
| 226 | - $info = $scoringSystem->read(['type'=>1]);//第一阶段是否有值 | 226 | + $info = $scoringSystem->read(['type'=>1,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 227 | if($info === false){ | 227 | if($info === false){ |
| 228 | return $this->success(1); | 228 | return $this->success(1); |
| 229 | } | 229 | } |
| 230 | } | 230 | } |
| 231 | if($date >= $afterThreeMonths && $date <= $afterSixMonths){ | 231 | if($date >= $afterThreeMonths && $date <= $afterSixMonths){ |
| 232 | - $info = $scoringSystem->read(['type'=>2]);//第一阶段是否有值 | 232 | + $info = $scoringSystem->read(['type'=>2,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 233 | if($info === false){ | 233 | if($info === false){ |
| 234 | return $this->success(2); | 234 | return $this->success(2); |
| 235 | } | 235 | } |
| 236 | } | 236 | } |
| 237 | if($date >= $afterOneYear){ | 237 | if($date >= $afterOneYear){ |
| 238 | - $info = $scoringSystem->read(['type'=>3]);//第一阶段是否有值 | 238 | + $info = $scoringSystem->read(['type'=>3,'project_id'=>$projectInfo['id']]);//第一阶段是否有值 |
| 239 | if($info === false){ | 239 | if($info === false){ |
| 240 | return $this->success(3); | 240 | return $this->success(3); |
| 241 | } | 241 | } |
-
请 注册 或 登录 后发表评论