1,"info"=>"用户未登录")); exit; } $allrunid=$_GET['allrunid']; $runstatus=$_GET['status']; $yii_url = 'http://'.CS1_DOMAIN.'/api/dynamic-bus/run-status-update'; $send_data = [ 'all_run_id'=>$allrunid, 'run_status'=>$runstatus ]; $res = httpRequest($yii_url,$send_data); $r = json_decode($res,true); if( $r['errcode'] == 0){ $pdo=conn(); $sql1 = "CALL SP_REFRESH_RUN_BUS_STATUS()"; $result = $pdo->query($sql1); } echo $res; exit; //$sql="call sp_update_run_status(".$userid.",'".$allrunid."',".$runstatus.")"; //$sql1 = "CALL SP_REFRESH_RUN_BUS_STATUS()"; //$result = $pdo->query($sql1); //writeLog("sp_update_run_status: ".$sql); //if (is_object($pdo)){ // $result=$pdo->query($sql); // $rowset=$result->fetchAll(PDO::FETCH_ASSOC); // $result->closeCursor(); // $sql1 = "CALL SP_REFRESH_RUN_BUS_STATUS()"; // $result = $pdo->query($sql1); // echo json_encode($rowset[0]); //}