作者 李宇航

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

gx



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