|
|
@ -246,10 +246,12 @@ class infofix extends CI_Controller
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function migrate_hb($ic_id, $dev = 'prod')
|
|
|
|
public function migrate_hb($ic_id, $dev = 'prod')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
// 本地测试参数
|
|
|
|
// 本地测试参数
|
|
|
|
$api = 'https://hmk.arachina.com/beta/3733/server_render2';
|
|
|
|
$api = 'https://hmk.arachina.com/beta/3733/server_render2';
|
|
|
|
if ($dev == 'dev') {
|
|
|
|
if ($dev == 'dev') {
|
|
|
|
$api = 'http://127.0.0.1:3733/server_render2';
|
|
|
|
$api = 'http://127.0.0.1:3733/server_render2';
|
|
|
|
|
|
|
|
sleep(3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 请求api
|
|
|
|
// 请求api
|
|
|
@ -276,12 +278,12 @@ class infofix extends CI_Controller
|
|
|
|
$curl_rs = str_replace(array('<my_lmr_tpl>', '</my_lmr_tpl>'), '', $curl_rs);
|
|
|
|
$curl_rs = str_replace(array('<my_lmr_tpl>', '</my_lmr_tpl>'), '', $curl_rs);
|
|
|
|
// 强制更新信息内容
|
|
|
|
// 强制更新信息内容
|
|
|
|
$this->infoContents_model->force_update($ic_id, $curl_rs);
|
|
|
|
$this->infoContents_model->force_update($ic_id, $curl_rs);
|
|
|
|
echo $ic_id . ' @ ok @ ';
|
|
|
|
echo json_encode(array('status' => 1));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
echo $ic_id . ' @ error1 @ ';
|
|
|
|
echo json_encode(array('status' => -1, msg => 'err1'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
echo $ic_id . ' @ error2 @ ';
|
|
|
|
echo json_encode(array('status' => -1, msg => 'err2'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|