//清分账号 $arr[1][$key]['remark'] = ''; //备注 $arr[1][$key]['remark_one'] = ''; //备注1 $arr[1][$key]['remark_two'] = ''; //备注2 $arr[1][$key]['feedback'] = ''; //反馈码 $arr[1][$key]['reason'] = ''; //原因 } $collection = new Collection(); $date = ''; $count = count($arr[1]); $collection->collectionNumber = $arr[0]['collectionNumber']; //代收号 $collection->ersionNumber = $arr[0]['ersionNumber']; //版本号 $collection->merchantId = $arr[0]['merchantId']; //商户ID//银联网络分配 $collection->businessType = $arr[0]['businessType']; //业务类型 $collection->recordsAll = $count; //总记录数 for ($i = 0; $i < $count; $i++) { $date .= str_pad($i + 1, 7, '0', STR_PAD_LEFT) . ',' . $arr[1][$i]['e_user_code'] . ',' . $arr[1][$i]['bank_code'] . ',' . $arr[1][$i]['account_type'] . ',' . $arr[1][$i]['account_no'] . ',' . $arr[1][$i]['account_name'] . ',' . $arr[1][$i]['province'] . ',' . $arr[1][$i]['city'] . ',' . $arr[1][$i]['bank_name'] . ',' . $arr[1][$i]['account_prop'] . ',' . $arr[1][$i]['amount'] . ',' . $arr[1][$i]['currency'] . ',' . $arr[1][$i]['protocol'] . ',' . $arr[1][$i]['protocol_userid'] . ',' . $arr[1][$i]['id_type'] . ',' . $arr[1][$i]['id'] . ',' . $arr[1][$i]['tel'] . ',' . $arr[1][$i]['cust_userid'] . ',' . $arr[1][$i]['clearing_account'] . ',' . $arr[1][$i]['remark'] . ',' . $arr[1][$i]['remark_one'] . ',' . $arr[1][$i]['remark_two'] . ',' . $arr[1][$i]['feedback'] . ',' . $arr[1][$i]['reason'] . "\r\n"; $collection->amountAll += $arr[1][$i]['amount']; } $collection->GetContent($date);