修改保存 remark 字段

wysf
Wayne 9 months ago
parent e6172eec0f
commit 822ccb6418
  1. 2
      app/store/model/store/Shop.php

@ -88,6 +88,7 @@ class Shop extends ShopModel
if (!$this->validateForm($data)) {
return false;
}
$data['remark'] = json_encode($data['remark'], JSON_UNESCAPED_UNICODE);
return $this->save($this->createData($data));
}
@ -101,6 +102,7 @@ class Shop extends ShopModel
if (!$this->validateForm($data)) {
return false;
}
$data['remark'] = json_encode($data['remark'], JSON_UNESCAPED_UNICODE);
return $this->save($this->createData($data)) !== false;
}

Loading…
Cancel
Save