Przeglądaj źródła

零售端开单报错修复

林琦海 5 lat temu
rodzic
commit
2753ff1586

+ 5 - 5
app-hd/controllers/OrderController.php

@@ -122,12 +122,12 @@ class OrderController extends BaseController
             //运费计算方式
             $freightType = 0;
             if ($freightType == 0 && $needSend == 1) {
-                $lat = $post['latitude'];//收货人纬度
-                $lng = $post['longitude'];//收货人经度
-                $respond = ExpressService::getUserDistance($lng, $lat, $defaultShopId, $this->sjExtend);
-                $sendCost = isset($respond['fee']) ? $respond['fee'] : 0;
+                //$lat = $post['latitude']??'';//收货人纬度
+                //$lng = $post['longitude']??'';//收货人经度
+                //$respond = ExpressService::getUserDistance($lng, $lat, $defaultShopId, $this->sjExtend);
+                //$sendCost = isset($respond['fee']) ? $respond['fee'] : 0;
             }
-            $post['sendCost'] = $sendCost;
+            //$post['sendCost'] = $sendCost;
 
             $prePrice = stringUtil::calcAdd($sendCost, $totalGoodsPrice);
 

+ 2 - 2
app-hd/controllers/UserController.php

@@ -42,7 +42,7 @@ class UserController extends BaseController
                 $where['name'] = ['like', $search];
             }
         }
-        $list = CustomService::getOldCustomList($where);
+        $list = CustomService::getCustomList($where);
         util::success($list);
     }
 
@@ -456,4 +456,4 @@ class UserController extends BaseController
         util::success($user);
     }
 
-}
+}