1,"info"=>"未登录")); exit; } $ordid=$_POST['ordid']; $prod_list=$_POST['prod_list']; writeLog('change_price.php'.json_encode($_POST)); $pdo=conn(); /* $price_txt = substr($_POST['price'],1,strlen($_POST['price'])-2); $price_array = explode(",", $price_txt); $prod_txt_ary = explode("}{",$myprod); $prod_id_ary = array(); foreach( $prod_txt_ary as $prod_txt ) { $end_pos = strpos($prod_txt,"p"); $prod_id_ary[] = substr($prod_txt,3,$end_pos-3); } $count = count($price_array); for ($i=0; $i<$count; $i++) { $price = $price_array[i]; $proid = $prod_id_ary[i]; $sql="call SP_CHANGE_PRICE('".$ordid."','".$price."','".$proid."')"; } */ $sql="call SP_CHANGE_PRICE(".$ordid.",'".$prod_list."')"; //$sql="update order_main set order_price ='".$price_arr[$k]."' where PROD_ID=".$v." and PARENT_ORDER_ID=".$ordid." and RUN_ID>0"; $result=$pdo->query($sql); $rowset=$result->fetchAll(PDO::FETCH_ASSOC); writeLog("change_price.php sql:: ".$sql."::rowset ::".json_encode($rowset)); $result->closeCursor(); echo json_encode($rowset[0]); exit();