فهرست منبع

收款码收入

shish 11 ماه پیش
والد
کامیت
113e587f59
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      app-mall/controllers/OrderController.php

+ 4 - 3
app-mall/controllers/OrderController.php

@@ -294,7 +294,7 @@ class OrderController extends BaseController
             if ($sendType == dict::getDict('sendType', 'thirdSend')) {
                 $lat = $post['lat'] ?? '';
                 $lng = $post['long'] ?? '';
-                if ((empty($lat) || empty($lng)) && dict::getDict('hasMap')==1) { // 当 hasMap 为1时,经纬数据是必要的
+                if ((empty($lat) || empty($lng)) && dict::getDict('hasMap') == 1) { // 当 hasMap 为1时,经纬数据是必要的
                     util::fail('缺少经纬数据');
                 }
                 $address = $post['address'] ?? '';
@@ -584,7 +584,8 @@ class OrderController extends BaseController
         }
         $ptItemId = $gatheringItemInfo->itemId ?? 0;
         $classId = $gatheringItemInfo->classId ?? 0;
-
+        //收款码是否算收入由ext gatherRepeat决定
+        $post['repeat'] = $ext->gatherRepeat ?? 0;
         $customId = $this->customId;
         $custom = $this->custom;
         $hdId = $this->hdId;
@@ -654,7 +655,7 @@ class OrderController extends BaseController
             'unitType' => 0,
             'property' => 1,
             'unitPrice' => $actPrice,
-            'itemId' => $classId,
+            'itemId' => $ptItemId,
             'classId' => $classId
         ]];
         $post['product'] = $product;