wugg 5 月之前
父節點
當前提交
3b2b2d62c3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/cxinv/controller/InvoiceItem.php

+ 3 - 1
app/cxinv/controller/InvoiceItem.php

@@ -11,7 +11,7 @@ use think\App;
 use think\facade\Validate;
 class InvoiceItem extends Base{
     public function __construct(App $app) {
-        $this->noLogin=["*"];
+
         parent::__construct($app);
         $this->model = new \app\cxinv\model\InvoiceItem();
     }
@@ -220,6 +220,8 @@ class InvoiceItem extends Base{
                 ->column('b.sequenceNo,b.goodNo,b.goodName,(b.goodNum-thNum) as goodNum,b.goodPrice,b.totalPrice,b.ainv_fee,b.winv_fee,b.apay_fee,b.wpay_fee,
                 c.merge_code,c.cat_code,c.cat_name,c.short_name,c.tax,c.inv_good_name',"b.sequenceNo");
         $orderItem=[];
+        var_dump($cgdInfo);
+        var_dump(array_sum(array_column($param['list'],"total_amount")));
         foreach($param["list"] as $v){
             if(!$listValid->check($v)) return  error($listValid->getError());
             if(!isset($itemArr[$v['itemId']])) return  error("发票明细不存在");