作者 lyh

GXgeo设置

@@ -59,7 +59,11 @@ class GeneratePage extends Command @@ -59,7 +59,11 @@ class GeneratePage extends Command
59 $noticeInfo = $noticeModel->read(['id'=>$task_id]); 59 $noticeInfo = $noticeModel->read(['id'=>$task_id]);
60 try { 60 try {
61 $this->output(' taskID: ' . $noticeInfo['id'] . ' start'); 61 $this->output(' taskID: ' . $noticeInfo['id'] . ' start');
  62 + if(!is_array($noticeInfo['data'])){
62 $notice_data = json_decode($noticeInfo['data'],true); 63 $notice_data = json_decode($noticeInfo['data'],true);
  64 + }else{
  65 + $notice_data = $noticeInfo['data'];
  66 + }
63 $c_url = $notice_data['c_url']; 67 $c_url = $notice_data['c_url'];
64 $c_params = json_encode($notice_data['c_params']); 68 $c_params = json_encode($notice_data['c_params']);
65 $re = http_post($c_url, $c_params, [], true); 69 $re = http_post($c_url, $c_params, [], true);