Просмотр исходного кода

Merge branch 'master' of git.huaml.com:zhh/huahuibao

shizhongqi 4 месяцев назад
Родитель
Сommit
96871b3d5f
3 измененных файлов с 1 добавлено и 7 удалено
  1. 0 2
      app-hd/controllers/GhsController.php
  2. 1 3
      biz/ghs/classes/GhsClass.php
  3. 0 2
      common/components/mapUtil.php

+ 0 - 2
app-hd/controllers/GhsController.php

@@ -471,8 +471,6 @@ class GhsController extends BaseController
         // 找出附近批发店,之后自动给建立关系,然后补充二个店之间的距离
         // 找出附近批发店,之后自动给建立关系,然后补充二个店之间的距离
         GhsClass::buildNearbyGhsRelations($this->shop['id'], $this->shop->pfShopId, $toLat, $toLnt);
         GhsClass::buildNearbyGhsRelations($this->shop['id'], $this->shop->pfShopId, $toLat, $toLnt);
 
 
-        noticeUtil::push("执行到这里。。。。5555");
-
         $shop = $this->shop;
         $shop = $this->shop;
         $mobile = $shop->mobile;
         $mobile = $shop->mobile;
         $name = $shop->merchantName ?? '';
         $name = $shop->merchantName ?? '';

+ 1 - 3
biz/ghs/classes/GhsClass.php

@@ -422,7 +422,6 @@ class GhsClass extends BaseClass
             $distance = $pair['distance'] ?? 0;
             $distance = $pair['distance'] ?? 0;
             // 距离大于60公里不建立关系
             // 距离大于60公里不建立关系
             if ($distance > 60 * 1000) {
             if ($distance > 60 * 1000) {
-                noticeUtil::push("执行到这里,没有建立关系。。。。" . $distance . ' ' . $ghsShopId . ' ' . $shopId);
                 continue;
                 continue;
             }
             }
 
 
@@ -430,11 +429,10 @@ class GhsClass extends BaseClass
             $ghs = self::build($ghsShopId, $shopId);
             $ghs = self::build($ghsShopId, $shopId);
             if (!empty($ghs) && $distance > 0) {
             if (!empty($ghs) && $distance > 0) {
                 $ghsId = $ghs['id'];
                 $ghsId = $ghs['id'];
-                noticeUtil::push("执行到这里,建立一个:" . $ghsId);
+                noticeUtil::push("建立一个关系:" . $ghsId);
                 self::updateById($ghsId, ['distance' => $distance]);
                 self::updateById($ghsId, ['distance' => $distance]);
             }
             }
         }
         }
-        noticeUtil::push("执行到这里。。。。2");
         return true;
         return true;
     }
     }
 
 

+ 0 - 2
common/components/mapUtil.php

@@ -57,7 +57,6 @@ class mapUtil
      */
      */
     public static function calculateBatchDistance($origins, $toLnt, $toLat, $type = 1)
     public static function calculateBatchDistance($origins, $toLnt, $toLat, $type = 1)
     {
     {
-        noticeUtil::push("执行到这里:xxx");
         if (empty($origins)) {
         if (empty($origins)) {
             return [];
             return [];
         }
         }
@@ -76,7 +75,6 @@ class mapUtil
         $curl = new curl\Curl();
         $curl = new curl\Curl();
         $result = $curl->get($url);
         $result = $curl->get($url);
         $result = \yii\helpers\Json::decode($result);
         $result = \yii\helpers\Json::decode($result);
-        noticeUtil::push("执行到这里:".json_encode($result)." url:".$url);
         $distances = [];
         $distances = [];
         if (!empty($result['status']) && $result['status'] == 1 && !empty($result['results'])) {
         if (!empty($result['status']) && $result['status'] == 1 && !empty($result['results'])) {
             foreach ($result['results'] as $index => $res) {
             foreach ($result['results'] as $index => $res) {