shish 5 лет назад
Родитель
Сommit
5558a30c69
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      app-ghs/controllers/ShopController.php
  2. 1 0
      app-hd/controllers/ShopController.php

+ 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();
     }