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