提交 7a801bd1 authored 作者: fengzy's avatar fengzy

oa付款单

上级 5cdfaea2
...@@ -58,10 +58,9 @@ foreach ($dataarr as $key => $value) { ...@@ -58,10 +58,9 @@ foreach ($dataarr as $key => $value) {
$post_content = self::create_postdata($data); $post_content = self::create_postdata($data);
$result = self::invoke_save($cloudUrl,$post_content,$cookie_jar); $result = self::invoke_save($cloudUrl,$post_content,$cookie_jar);
$array = json_decode($result,true); $array = json_decode($result,true);
echo "<pre>";
var_dump($array);die;
if(count($array)>1){ if(count($array)>1){
echo 1111;die;
$key = ['FSRCBILLNO','FBillNo','FDOCUMENTSTATUS','FPAYTOTALAMOUNTFOR','FPOSTDATE' ]; $key = ['FSRCBILLNO','FBillNo','FDOCUMENTSTATUS','FPAYTOTALAMOUNTFOR','FPOSTDATE' ];
$new_array = array(); $new_array = array();
foreach($array as $k=>$v) { foreach($array as $k=>$v) {
...@@ -130,7 +129,7 @@ foreach ($dataarr as $key => $value) { ...@@ -130,7 +129,7 @@ foreach ($dataarr as $key => $value) {
}else{ }else{
echo 222;
$key = ['FSRCBILLNO','FBillNo','FDOCUMENTSTATUS','FPAYTOTALAMOUNTFOR','FPOSTDATE' ]; $key = ['FSRCBILLNO','FBillNo','FDOCUMENTSTATUS','FPAYTOTALAMOUNTFOR','FPOSTDATE' ];
$new_array = array(); $new_array = array();
foreach($array as $k=>$v) { foreach($array as $k=>$v) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论