shish 2 lat temu
rodzic
commit
fe99cb061d
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      app-ghs/controllers/CustomController.php

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

@@ -40,9 +40,8 @@ class CustomController extends BaseController
         $floor = $post['floor'] ?? '';
         $floor = $post['floor'] ?? '';
         $post['fullAddress'] = $city . $dist . $address . $floor;
         $post['fullAddress'] = $city . $dist . $address . $floor;
         $shopId = $custom->shopId ?? 0;
         $shopId = $custom->shopId ?? 0;
-        $where = ['shopId' => $shopId];
         ShopClass::updateById($shopId, $post);
         ShopClass::updateById($shopId, $post);
-        CustomClass::updateByCondition($where, $post);
+        CustomClass::updateByCondition(['id' => $id], $post);
         util::complete('修改成功');
         util::complete('修改成功');
     }
     }