From 44f33a72d4b348ad3681d9105ddcdd4a52a6cf02 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Wed, 28 Aug 2024 13:52:21 +0800 Subject: [PATCH] fix --- application/controllers/infofix.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/controllers/infofix.php b/application/controllers/infofix.php index 2975f9db..e2b3622d 100644 --- a/application/controllers/infofix.php +++ b/application/controllers/infofix.php @@ -246,10 +246,12 @@ class infofix extends CI_Controller */ public function migrate_hb($ic_id, $dev = 'prod') { + // 本地测试参数 $api = 'https://hmk.arachina.com/beta/3733/server_render2'; if ($dev == 'dev') { $api = 'http://127.0.0.1:3733/server_render2'; + sleep(3); } // 请求api @@ -276,12 +278,12 @@ class infofix extends CI_Controller $curl_rs = str_replace(array('', ''), '', $curl_rs); // 强制更新信息内容 $this->infoContents_model->force_update($ic_id, $curl_rs); - echo $ic_id . ' @ ok @ '; + echo json_encode(array('status' => 1)); } else { - echo $ic_id . ' @ error1 @ '; + echo json_encode(array('status' => -1, msg => 'err1')); } } else { - echo $ic_id . ' @ error2 @ '; + echo json_encode(array('status' => -1, msg => 'err2')); } }