diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 2bbf3f672..e17931980 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1886,8 +1886,8 @@ function excelUpStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_ } //合计 - $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $all_sum_money); - $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $all_pay_amount); + $objPHPExcel->getActiveSheet()->setCellValue("E" . ($line), $data['pay_amount']); + $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line), $data['statement_money']); $objPHPExcel->getActiveSheet()->setCellValue("J" . ($line+1), $big_all_sum_money); //本月分成总金额(人民币大写) @@ -1960,8 +1960,8 @@ function excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_al $line++; } - $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $all_sum_money);//合计-平台总额 - $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), $all_pay_amount);//合计-结算金额 + $objPHPExcel->getActiveSheet()->setCellValue('C'.($line), $data['pay_amount']);//合计-平台总额 + $objPHPExcel->getActiveSheet()->setCellValue('F'.($line), $data['statement_money']);//合计-结算金额 $objPHPExcel->getActiveSheet()->setCellValue('B'.($line+1), $big_all_sum_money);//大写支付结算金额 diff --git a/Application/Admin/Controller/PublicController.class.php b/Application/Admin/Controller/PublicController.class.php index 86bda178f..2afd43a19 100644 --- a/Application/Admin/Controller/PublicController.class.php +++ b/Application/Admin/Controller/PublicController.class.php @@ -78,7 +78,7 @@ class PublicController extends \Think\Controller if (IS_POST) { /* 检测验证码 TODO: */ -// $this->checksafecode($mobile, $verify, false); + $this->checksafecode($mobile, $verify, false); $promote = M('promote', 'tab_')->where([ 'mobile_phone' => $mobile, 'level' => 1, diff --git a/Application/Admin/Controller/VerifyBillController.class.php b/Application/Admin/Controller/VerifyBillController.class.php index d951bedf3..9408dc618 100644 --- a/Application/Admin/Controller/VerifyBillController.class.php +++ b/Application/Admin/Controller/VerifyBillController.class.php @@ -53,7 +53,7 @@ class VerifyBillController extends Controller { // dd($data); $all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额 $all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额 - $big_all_sum_money = convertAmountToCn($all_sum_money);//大写 + $big_all_sum_money = convertAmountToCn($data['statement_money']);//大写 $this->assign('big_all_sum_money', $big_all_sum_money); $this->assign('all_sum_money', $all_sum_money); $this->assign('all_pay_amount', $all_pay_amount); @@ -94,10 +94,9 @@ class VerifyBillController extends Controller { $all_sum_money = array_sum(array_column($data['statement_info'], 'sum_money'));//合计平台总额 $all_pay_amount = array_sum(array_column($data['statement_info'], 'pay_amount'));//合计结算金额 - $big_all_sum_money = convertAmountToCn($all_sum_money);//大写 + $big_all_sum_money = convertAmountToCn($data['statement_money']);//大写 $data['receive_company'] = $data['pay_type'] ? $data['first_party_info'] : $data['second_party_info']; $data['pay_company'] = $data['pay_type'] ? $data['second_party_info'] : $data['first_party_info']; - dd($data['statement_info']); if ($data['statement_type'] == 1) {//下游 excelDownStreamTemplate($data, $all_sum_money, $all_pay_amount, $big_all_sum_money); } else {//上游 diff --git a/Application/Admin/View/VerifyBill/company_show.html b/Application/Admin/View/VerifyBill/company_show.html index ad04083e1..995ba6c54 100644 --- a/Application/Admin/View/VerifyBill/company_show.html +++ b/Application/Admin/View/VerifyBill/company_show.html @@ -109,7 +109,7 @@