Browse Source

更新地址

shish 2 years ago
parent
commit
fe99cb061d
1 changed files with 1 additions and 2 deletions
  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'] ?? '';
         $post['fullAddress'] = $city . $dist . $address . $floor;
         $shopId = $custom->shopId ?? 0;
-        $where = ['shopId' => $shopId];
         ShopClass::updateById($shopId, $post);
-        CustomClass::updateByCondition($where, $post);
+        CustomClass::updateByCondition(['id' => $id], $post);
         util::complete('修改成功');
     }