1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00
This commit is contained in:
Newnius 2020-06-21 13:06:19 +08:00
parent bb54f71a61
commit ced80257d5

View File

@ -158,6 +158,8 @@ function job_predict_req(CRObject $job)
$spider->doGet(YAO_SCHEDULER_ADDR . '?action=job_predict_req&name=' . $job->get('name') . '&cmd=' . $job->get('cmd'));
$msg = json_decode($spider->getBody(), true);
var_dump($msg);
if ($msg['code'] !== 0) {
$res['errno'] = $msg['code'];
$res['msg'] = $msg['error'];