Browse Source

修改完整地址

shish 2 years ago
parent
commit
25360822fd
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app-ghs/controllers/CustomController.php

+ 5 - 0
app-ghs/controllers/CustomController.php

@@ -34,6 +34,11 @@ class CustomController extends BaseController
         if ($custom->ownMainId != $this->mainId) {
             util::fail('没有权限修改');
         }
+        $city = $post['city'] ?? '';
+        $dist = $post['dist'] ?? '';
+        $address = $post['address'] ?? '';
+        $floor = $post['floor'] ?? '';
+        $post['fullAddress'] = $city . $dist . $address . $floor;
         $shopId = $custom->shopId ?? 0;
         $where = ['shopId' => $shopId];
         ShopClass::updateById($shopId, $post);