shish 2 лет назад
Родитель
Сommit
25360822fd
1 измененных файлов с 5 добавлено и 0 удалено
  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);