Merge pull request 'dev' (#21) from dev into master
Reviewed-on: http://git.excellentkk.cn/mkm/shop-php/pulls/21
This commit is contained in:
commit
26884cfd16
@ -407,11 +407,14 @@ class CommunityRepository extends BaseRepository
|
||||
if (!$getTopic || !$getTopic->status) throw new ValidateException('话题不存在或已关闭');
|
||||
$data['category_id'] = $getTopic->category_id;
|
||||
}
|
||||
|
||||
|
||||
Db::transaction(function () use($id, $data) {
|
||||
$spuId = $data['spu_id'];
|
||||
$productInfo = $data['product_info'];
|
||||
unset($data['spu_id'], $data['product_info']);
|
||||
if ($data['is_type'] != self::COMMUNITY_TYPE_ENTRUST) {
|
||||
unset($data['entrust_mer_id'], $data['entrust_day']);
|
||||
}
|
||||
$community = $this->dao->update($id, $data);
|
||||
if ($spuId) $this->joinProduct($id, $spuId);
|
||||
if ($productInfo && $data['is_type'] == self::COMMUNITY_TYPE_RESALE) {
|
||||
|
BIN
public/static.dev/images/plant-header.png
Normal file
BIN
public/static.dev/images/plant-header.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 843 KiB |
@ -0,0 +1,3 @@
|
||||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
HostUrl=https://mer.crmeb.net/static/images/plant-header.png
|
Loading…
x
Reference in New Issue
Block a user