Răsfoiți Sursa

门店修改

shish 5 ani în urmă
părinte
comite
5558a30c69

+ 1 - 0
app-ghs/controllers/ShopController.php

@@ -48,6 +48,7 @@ class ShopController extends BaseController
             util::fail('没有找到门店');
         }
         ShopClass::valid($shop, $this->sjId);
+        $data['img'] = isset($data['img']) && is_array($data['img']) ? json_encode($data['img']) : '';
         ShopClass::updateShop($id, $data);
         util::complete();
     }

+ 1 - 0
app-hd/controllers/ShopController.php

@@ -43,6 +43,7 @@ class ShopController extends BaseController
         unset($data['id']);
         $shop = ShopService::getById($id);
         ShopService::valid($shop, $this->sjId);
+        $data['img'] = isset($data['img']) && is_array($data['img']) ? json_encode($data['img']) : '';
         ShopService::updateShop($id, $data);
         util::complete();
     }