Przeglądaj źródła

跑腿 创建 修改 门店 与 经纬度

shish 10 miesięcy temu
rodzic
commit
102ef33cc1

+ 2 - 2
app-ghs/controllers/IntraCityController.php

@@ -51,7 +51,7 @@ class IntraCityController extends BaseController
         $shopName = $shop->shopName ?? '';
         $sjName = $shop->merchantName ?? '';
         $name = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
-        if (empty($shop->latitude) || empty($shop->longitude)) {
+        if (empty($shop->lat) || empty($shop->long)) {
             util::fail('没有经纬度,请修改地址');
         }
         if (empty($shop->address)) {
@@ -150,7 +150,7 @@ class IntraCityController extends BaseController
         $adminId = $this->adminId;
         util::checkRepeatCommit($adminId, 4);
 
-        if (empty($shop->latitude) || empty($shop->longitude)) {
+        if (empty($shop->lat) || empty($shop->long)) {
             util::fail('没有经纬度,请修改地址');
         }
         if (empty($shop->address)) {

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

@@ -52,7 +52,7 @@ class IntraCityController extends BaseController
         $adminId = $this->adminId;
         util::checkRepeatCommit($adminId, 4);
 
-        if (empty($shop->latitude) || empty($shop->longitude)) {
+        if (empty($shop->lat) || empty($shop->long)) {
             util::fail('没有经纬度,请修改地址');
         }
         if (empty($shop->address)) {
@@ -144,7 +144,7 @@ class IntraCityController extends BaseController
         $adminId = $this->adminId;
         util::checkRepeatCommit($adminId, 4);
 
-        if (empty($shop->latitude) || empty($shop->longitude)) {
+        if (empty($shop->lat) || empty($shop->long)) {
             util::fail('没有经纬度,请修改地址');
         }
         if (empty($shop->address)) {