作者 李宇航

合并分支 'master-server' 到 'master'

gx



查看合并请求 !1083
... ... @@ -32,7 +32,7 @@ class GeneratePage extends Command
*
* @var string
*/
protected $description = '批量导入关键字生成路由';
protected $description = '通知生成页面';
/**
* Create a new command instance.
... ... @@ -58,8 +58,9 @@ class GeneratePage extends Command
}
try {
$this->output(' taskID: ' . $noticeInfo['id'] . ' start');
$c_url = $noticeInfo['data']['c_url'];
$c_params = $noticeInfo['data']['c_params'];
$notice_data = json_decode($noticeInfo['data'],true);
$c_url = $notice_data['c_url'];
$c_params = json_encode($notice_data['c_params']);
$re = http_post($c_url, $c_params, [], true);
if (isset($re['status']) && $re['status'] == 200) {
$noticeModel->edit(['status'=>1],['id'=>$noticeInfo['id']]);
... ...