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

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

shizhongqi 10 месяцев назад
Родитель
Сommit
0b2bf81a64

+ 2 - 1
app-ghs/controllers/ConsoleController.php

@@ -168,7 +168,8 @@ class ConsoleController extends BaseController
         }
 
         //$notice[] = ['title' => '节日期间官方技术服务电话2号:17189513228', 'action' => '', 'page' => ''];
-        $notice[] = ['title' => '客户下单自动计算跑腿费,快速设置', 'action' => '查看', 'page' => '/admin/book/detail?id=auto_calc_pt_fee'];
+        $notice[] = ['title' => '快速设置:客户下单自动计算跑腿费', 'action' => '查看', 'page' => '/admin/book/detail?id=auto_calc_pt_fee'];
+        $notice[] = ['title' => '订单上如何一键呼叫跑腿', 'action' => '查看', 'page' => '/admin/book/detail?id=one_call_pt'];
 
         $mainId = $this->mainId;
         $respond = StatSaleClass::profile($mainId);

+ 11 - 4
app-ghs/controllers/IntraCityController.php

@@ -61,18 +61,22 @@ class IntraCityController extends BaseController
         $adminId = $this->adminId;
         util::checkRepeatCommit($adminId, 3);
 
+        //区是必传,如果没有区,先用市来代替,比如:淘花里中山店,他就是没有区
+        $dist = !empty($shop->dist) ? $shop->dist : '市区';
+        $telephone = !empty($shop->telephone) ? $shop->telephone : $shop->mobile;
+
         $storeData = [
             'out_store_id' => $this->mainId, //自定义门店编号
             'store_name' => $name,
             'address_info' => [
                 'province' => $shop->province,
                 'city' => $shop->city,
-                'area' => $shop->dist,
+                'area' => $dist,
                 'street' => '',
                 'house' => $shop->address . $shop->floor,
                 'lat' => $shop->lat,
                 'lng' => $shop->long,
-                'phone' => $shop->telephone
+                'phone' => $telephone,
             ]
         ];
         // 验证必填参数
@@ -157,6 +161,9 @@ class IntraCityController extends BaseController
             util::fail('地址缺失,请修改');
         }
 
+        //区是必传,如果没有区,先用市来代替,比如:淘花里中山店,他就是没有区
+        $dist = !empty($shop->dist) ? $shop->dist : '市区';
+        $telephone = !empty($shop->telephone) ? $shop->telephone : $shop->mobile;
         $storeData = [
             'keys' => ['wx_store_id' => $wxStoreId],
             'content' => [
@@ -164,12 +171,12 @@ class IntraCityController extends BaseController
                 'address_info' => [
                     'province' => $shop->province,
                     'city' => $shop->city,
-                    'area' => $shop->dist,
+                    'area' => $dist,
                     'street' => '',
                     'house' => $shop->address . $shop->floor,
                     'lat' => $shop->lat,
                     'lng' => $shop->long,
-                    'phone' => $shop->telephone
+                    'phone' => $telephone
                 ],
                 //"order_pattern" => 2,
                 //"service_trans_prefer" => "SFTC" //order_pattern = 2时必填

+ 1 - 1
app-ghs/controllers/TestController.php

@@ -973,7 +973,7 @@ class TestController extends BaseController
         ];
         $laResource = new Lakala($params);
         $queryParams = [
-            'orderSn' => 'CRS55742',
+            'orderSn' => 'CRS75505',
             //'tradeNo' => '66221061685504',
         ];
         $response = $laResource->query($queryParams, 0);

+ 11 - 4
app-hd/controllers/IntraCityController.php

@@ -58,18 +58,21 @@ class IntraCityController extends BaseController
         if (empty($shop->address)) {
             util::fail('地址缺失,请修改');
         }
+        //区是必传,如果没有区,先用市来代替,比如:淘花里中山店,他就是没有区
+        $dist = !empty($shop->dist) ? $shop->dist : '市区';
+        $telephone = !empty($shop->telephone) ? $shop->telephone : $shop->mobile;
         $storeData = [
             'out_store_id' => $this->mainId, //自定义门店编号 --  从 shopId 改为 mainId
             'store_name' => $name,
             'address_info' => [
                 'province' => $shop->province,
                 'city' => $shop->city,
-                'area' => $shop->dist,
+                'area' => $dist,
                 'street' => '',
                 'house' => $shop->address . $shop->floor,
                 'lat' => $shop->lat,
                 'lng' => $shop->long,
-                'phone' => $shop->telephone
+                'phone' => $telephone
             ]
         ];
         // 验证必填参数
@@ -156,6 +159,10 @@ class IntraCityController extends BaseController
         $sjName = $shop->merchantName ?? '';
         $name = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
 
+        //区是必传,如果没有区,先用市来代替,比如:淘花里中山店,他就是没有区
+        $dist = !empty($shop->dist) ? $shop->dist : '市区';
+        $telephone = !empty($shop->telephone) ? $shop->telephone : $shop->mobile;
+
         $storeData = [
             'keys' => ['wx_store_id' => $wxStoreId],
             'content' => [
@@ -163,12 +170,12 @@ class IntraCityController extends BaseController
                 'address_info' => [
                     'province' => $shop->province,
                     'city' => $shop->city,
-                    'area' => $shop->dist,
+                    'area' => $dist,
                     'street' => '',
                     'house' => $shop->address . $shop->floor,
                     'lat' => $shop->lat,
                     'lng' => $shop->long,
-                    'phone' => $shop->telephone
+                    'phone' => $telephone
                 ],
                 //"order_pattern" => 2,
                 //"service_trans_prefer" => "SFTC" //order_pattern = 2时必填

+ 6 - 1
common/components/book.php

@@ -31,6 +31,7 @@ class book
             ['title' => '用标签机,打标签和价码', 'id' => 'label'],
             ['title' => '大客户价的管理', 'id' => 'super_member'],
             ['title' => '客户下单自动计算跑腿费', 'id' => 'auto_calc_pt_fee'],
+            ['title' => '订单上一键呼叫腿费', 'id' => 'one_call_pt'],
         ]],
         ['class' => '采购', 'icon' => '/book/stock.png', 'list' => [
             ['title' => '采购入库和改价格(重要)', 'id' => 'cg', 'style' => 'red'],
@@ -222,7 +223,11 @@ class book
         'label' => [
             ['style' => 'video', 'value' => 'jc/44labelPrint.mp4'],
         ],
-        'auto_calc_pt_fee'=>[
+        'one_call_pt' => [
+            ['style' => 'video', 'value' => 'jc/one_call_pt.mp4'],
+            ['style' => 'miniTitle', 'value' => '充值的钱没有用完,可以申请退款。',],
+        ],
+        'auto_calc_pt_fee' => [
             ['style' => 'video', 'value' => 'jc/auto_calc_pt_fee.mp4'],
         ],
         'super_member' => [